Files
nixpkgs/pkgs/development/ocaml-modules/cryptokit/default.nix
T
Wolfgang Walther 822d27c8cd maintainers: drop maggesi
Inactive since 2019/2020.
2025-10-17 09:21:39 +02:00

43 lines
867 B
Nix

{
lib,
buildDunePackage,
fetchFromGitHub,
zlib,
dune-configurator,
zarith,
}:
buildDunePackage rec {
pname = "cryptokit";
version = "1.20.1";
minimalOCamlVersion = "4.08";
src = fetchFromGitHub {
owner = "xavierleroy";
repo = "cryptokit";
rev = "release${lib.replaceStrings [ "." ] [ "" ] version}";
hash = "sha256-VFY10jGctQfIUVv7dK06KP8zLZHLXTxvLyTCObS+W+E=";
};
# dont do autotools configuration, but do trigger findlib's preConfigure hook
configurePhase = ''
runHook preConfigure
runHook postConfigure
'';
buildInputs = [ dune-configurator ];
propagatedBuildInputs = [
zarith
zlib
];
doCheck = true;
meta = {
homepage = "http://pauillac.inria.fr/~xleroy/software.html";
description = "Library of cryptographic primitives for OCaml";
license = lib.licenses.lgpl2Only;
};
}