6d4aeb4377
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
36 lines
918 B
Nix
36 lines
918 B
Nix
{ lib, buildDunePackage, fetchFromGitHub, zlib, dune-configurator, zarith }:
|
|
|
|
buildDunePackage rec {
|
|
pname = "cryptokit";
|
|
version = "1.18";
|
|
duneVersion = "3";
|
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "xavierleroy";
|
|
repo = "cryptokit";
|
|
rev = "release${lib.replaceStrings ["."] [""] version}";
|
|
hash = "sha256-8ae8hroCSkp4O5vM/qVOhAnnJJ+uygMYm3ix5ytwtHU=";
|
|
};
|
|
|
|
# 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 = "A library of cryptographic primitives for OCaml";
|
|
license = lib.licenses.lgpl2Only;
|
|
maintainers = [
|
|
lib.maintainers.maggesi
|
|
];
|
|
};
|
|
}
|