2021-12-19 01:06:50 +00:00
|
|
|
{ lib, buildDunePackage, fetchFromGitHub, zlib, dune-configurator, zarith, ncurses }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
buildDunePackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "cryptokit";
|
2020-11-06 00:33:48 +00:00
|
|
|
version = "1.16.1";
|
|
|
|
|
|
|
|
useDune2 = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xavierleroy";
|
|
|
|
repo = "cryptokit";
|
|
|
|
rev = "release${lib.replaceStrings ["."] [""] version}";
|
|
|
|
sha256 = "sha256-eDIzi16Al/mXCNos/lVqjZWCtdP9SllXnRfm4GBWMfA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
# dont do autotools configuration, but do trigger findlib's preConfigure hook
|
|
|
|
configurePhase = ''
|
|
|
|
runHook preConfigure
|
|
|
|
runHook postConfigure
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-06 00:33:48 +00:00
|
|
|
buildInputs = [ dune-configurator ncurses ];
|
|
|
|
propagatedBuildInputs = [ zarith zlib ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-06 00:33:48 +00:00
|
|
|
doCheck = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://pauillac.inria.fr/~xleroy/software.html";
|
|
|
|
description = "A library of cryptographic primitives for OCaml";
|
2020-11-06 00:33:48 +00:00
|
|
|
license = lib.licenses.lgpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [
|
2020-11-06 00:33:48 +00:00
|
|
|
lib.maintainers.maggesi
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|