at master 48 lines 1.2 kB view raw
1{ 2 stdenv, 3 lib, 4 fetchurl, 5 ocaml, 6 findlib, 7}: 8 9if lib.versionAtLeast ocaml.version "4.06" then 10 throw "cryptgps is not available for OCaml ${ocaml.version}" 11else 12 13 stdenv.mkDerivation { 14 pname = "ocaml-cryptgps"; 15 version = "0.2.1"; 16 17 src = fetchurl { 18 url = "http://download.camlcity.org/download/cryptgps-0.2.1.tar.gz"; 19 sha256 = "1mp7i42cm9w9grmcsa69m3h1ycpn6a48p43y4xj8rsc12x9nav3s"; 20 }; 21 22 nativeBuildInputs = [ 23 ocaml 24 findlib 25 ]; 26 27 strictDeps = true; 28 29 dontConfigure = true; # Skip configure phase 30 31 createFindlibDestdir = true; 32 33 meta = { 34 homepage = "http://projects.camlcity.org/projects/cryptgps.html"; 35 description = "Cryptographic functions for OCaml"; 36 longDescription = '' 37 This library implements the symmetric cryptographic algorithms 38 Blowfish, DES, and 3DES. The algorithms are written in O'Caml, 39 i.e. this is not a binding to some C library, but the implementation 40 itself. 41 ''; 42 license = lib.licenses.mit; 43 inherit (ocaml.meta) platforms; 44 maintainers = [ 45 lib.maintainers.maggesi 46 ]; 47 }; 48 }