1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00
nixpkgs/pkgs/development/ocaml-modules/cryptokit/default.nix
2014-01-18 20:56:44 +00:00

30 lines
757 B
Nix

{stdenv, fetchurl, zlib, ocaml, findlib, ncurses}:
let
ocaml_version = (builtins.parseDrvName ocaml.name).version;
in
stdenv.mkDerivation {
name = "cryptokit-1.9";
src = fetchurl {
url = http://forge.ocamlcore.org/frs/download.php/1166/cryptokit-1.9.tar.gz;
sha256 = "1jh0jqiwkjy9qplnfcm5r25zdgyk36sxb0c87ks3rjj7khrw1a2n";
};
buildInputs = [zlib ocaml findlib ncurses];
buildFlags = "setup.data build";
preBuild = "mkdir -p $out/lib/ocaml/${ocaml_version}/site-lib/cryptokit";
meta = {
homepage = "http://pauillac.inria.fr/~xleroy/software.html";
description = "A library of cryptographic primitives for OCaml";
platforms = ocaml.meta.platforms;
maintainers = [
stdenv.lib.maintainers.z77z
];
};
}