2022-05-18 14:49:53 +00:00
|
|
|
{ lib, buildDunePackage, fetchFromGitHub, zlib, dune-configurator, zarith }:
|
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";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "1.18";
|
|
|
|
duneVersion = "3";
|
2020-11-06 00:33:48 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
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}";
|
2023-01-11 07:51:40 +00:00
|
|
|
hash = "sha256-8ae8hroCSkp4O5vM/qVOhAnnJJ+uygMYm3ix5ytwtHU=";
|
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
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
buildInputs = [ dune-configurator ];
|
2020-11-06 00:33:48 +00:00
|
|
|
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
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|