Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildDunePackage, 4 fetchFromGitHub, 5 ocaml, 6 seq, 7 qcheck, 8 ounit2, 9}: 10 11buildDunePackage rec { 12 version = "1.1"; 13 pname = "gen"; 14 minimalOCamlVersion = "4.03"; 15 duneVersion = "3"; 16 17 src = fetchFromGitHub { 18 owner = "c-cube"; 19 repo = "gen"; 20 rev = "v${version}"; 21 hash = "sha256-ZytPPGhmt/uANaSgkgsUBOwyQ9ka5H4J+5CnJpEdrNk="; 22 }; 23 24 propagatedBuildInputs = [ seq ]; 25 checkInputs = [ 26 qcheck 27 ounit2 28 ]; 29 30 doCheck = lib.versionAtLeast ocaml.version "4.08"; 31 32 meta = { 33 homepage = "https://github.com/c-cube/gen"; 34 description = "Simple, efficient iterators for OCaml"; 35 license = lib.licenses.bsd3; 36 }; 37}