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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
918 B
Nix
Raw Normal View History

{ lib, buildDunePackage, fetchFromGitHub, zlib, dune-configurator, zarith }:
buildDunePackage rec {
pname = "cryptokit";
2023-01-05 08:47:43 +00:00
version = "1.18";
duneVersion = "3";
minimalOCamlVersion = "4.08";
src = fetchFromGitHub {
owner = "xavierleroy";
repo = "cryptokit";
rev = "release${lib.replaceStrings ["."] [""] version}";
2023-01-05 08:47:43 +00:00
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
];
};
}