1 {stdenv, lib, fetchurl, ocaml, findlib}:
3 if lib.versionAtLeast ocaml.version "4.06"
4 then throw "cryptgps is not available for OCaml ${ocaml.version}"
8 pname = "ocaml-cryptgps";
12 url = "http://download.camlcity.org/download/cryptgps-0.2.1.tar.gz";
13 sha256 = "1mp7i42cm9w9grmcsa69m3h1ycpn6a48p43y4xj8rsc12x9nav3s";
16 nativeBuildInputs = [ ocaml findlib ];
20 dontConfigure = true; # Skip configure phase
22 createFindlibDestdir = true;
25 homepage = "http://projects.camlcity.org/projects/cryptgps.html";
26 description = "Cryptographic functions for OCaml";
28 This library implements the symmetric cryptographic algorithms
29 Blowfish, DES, and 3DES. The algorithms are written in O'Caml,
30 i.e. this is not a binding to some C library, but the implementation
33 license = lib.licenses.mit;
34 inherit (ocaml.meta) platforms;
36 lib.maintainers.maggesi