depot/third_party/nixpkgs/pkgs/development/ocaml-modules/cryptokit/default.nix

36 lines
905 B
Nix
Raw Normal View History

{ lib, buildDunePackage, fetchFromGitHub, zlib, dune-configurator, zarith, ncurses }:
buildDunePackage rec {
pname = "cryptokit";
version = "1.16.1";
useDune2 = true;
src = fetchFromGitHub {
owner = "xavierleroy";
repo = "cryptokit";
rev = "release${lib.replaceStrings ["."] [""] version}";
sha256 = "sha256-eDIzi16Al/mXCNos/lVqjZWCtdP9SllXnRfm4GBWMfA=";
};
# dont do autotools configuration, but do trigger findlib's preConfigure hook
configurePhase = ''
runHook preConfigure
runHook postConfigure
'';
buildInputs = [ dune-configurator ncurses ];
propagatedBuildInputs = [ zarith zlib ];
doCheck = true;
meta = {
homepage = "http://pauillac.inria.fr/~xleroy/software.html";
description = "A library of cryptographic primitives for OCaml";
license = lib.licenses.lgpl2Only;
maintainers = [
lib.maintainers.maggesi
];
};
}