3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/cryptgps/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1.1 KiB
Nix
Raw Normal View History

{stdenv, lib, fetchurl, ocaml, findlib}:
if lib.versionAtLeast ocaml.version "4.06"
then throw "cryptgps is not available for OCaml ${ocaml.version}"
else
2019-08-13 22:52:01 +01:00
stdenv.mkDerivation {
pname = "ocaml-cryptgps";
2016-10-05 08:32:30 +01:00
version = "0.2.1";
src = fetchurl {
url = "http://download.camlcity.org/download/cryptgps-0.2.1.tar.gz";
sha256 = "1mp7i42cm9w9grmcsa69m3h1ycpn6a48p43y4xj8rsc12x9nav3s";
};
nativeBuildInputs = [ ocaml findlib ];
strictDeps = true;
2019-06-19 16:36:06 +01: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.
'';
license = lib.licenses.mit;
platforms = ocaml.meta.platforms or [];
maintainers = [
lib.maintainers.maggesi
];
};
}