Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildDunePackage, fetchFromGitHub, zlib, dune-configurator, zarith }:
2
3buildDunePackage rec {
4 pname = "cryptokit";
5 version = "1.18";
6 duneVersion = "3";
7
8 minimalOCamlVersion = "4.08";
9
10 src = fetchFromGitHub {
11 owner = "xavierleroy";
12 repo = "cryptokit";
13 rev = "release${lib.replaceStrings ["."] [""] version}";
14 hash = "sha256-8ae8hroCSkp4O5vM/qVOhAnnJJ+uygMYm3ix5ytwtHU=";
15 };
16
17 # dont do autotools configuration, but do trigger findlib's preConfigure hook
18 configurePhase = ''
19 runHook preConfigure
20 runHook postConfigure
21 '';
22
23 buildInputs = [ dune-configurator ];
24 propagatedBuildInputs = [ zarith zlib ];
25
26 doCheck = true;
27
28 meta = {
29 homepage = "http://pauillac.inria.fr/~xleroy/software.html";
30 description = "A library of cryptographic primitives for OCaml";
31 license = lib.licenses.lgpl2Only;
32 maintainers = [
33 lib.maintainers.maggesi
34 ];
35 };
36}