2021-01-15 22:18:51 +00:00
|
|
|
{stdenv, lib, fetchurl, ocaml, findlib}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
if lib.versionAtLeast ocaml.version "4.06"
|
2020-04-24 23:36:52 +00:00
|
|
|
then throw "cryptgps is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "ocaml-cryptgps";
|
|
|
|
version = "0.2.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.camlcity.org/download/cryptgps-0.2.1.tar.gz";
|
|
|
|
sha256 = "1mp7i42cm9w9grmcsa69m3h1ycpn6a48p43y4xj8rsc12x9nav3s";
|
|
|
|
};
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib ];
|
|
|
|
|
|
|
|
strictDeps = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
dontConfigure = true; # Skip configure phase
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://projects.camlcity.org/projects/cryptgps.html";
|
|
|
|
description = "Cryptographic functions for OCaml";
|
|
|
|
longDescription = ''
|
|
|
|
This library implements the symmetric cryptographic algorithms
|
|
|
|
Blowfish, DES, and 3DES. The algorithms are written in O'Caml,
|
|
|
|
i.e. this is not a binding to some C library, but the implementation
|
|
|
|
itself.
|
|
|
|
'';
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.mit;
|
2022-05-18 14:49:53 +00:00
|
|
|
inherit (ocaml.meta) platforms;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [
|
2021-01-15 22:18:51 +00:00
|
|
|
lib.maintainers.maggesi
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|