Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 ocaml, 4 fetchurl, 5 buildDunePackage, 6 eqaf, 7 alcotest, 8 astring, 9 bos, 10 crowbar, 11 findlib, 12 fpath, 13}: 14 15buildDunePackage rec { 16 pname = "digestif"; 17 version = "1.3.0"; 18 19 minimalOCamlVersion = "4.08"; 20 21 src = fetchurl { 22 url = "https://github.com/mirage/digestif/releases/download/v${version}/digestif-${version}.tbz"; 23 hash = "sha256-mmzcszJTnIf0cj/DvXNiayZ1p7EWH98P7TCRhs4Y9Cc="; 24 }; 25 26 propagatedBuildInputs = [ eqaf ]; 27 28 checkInputs = [ 29 alcotest 30 astring 31 bos 32 crowbar 33 fpath 34 ]; 35 doCheck = true; 36 37 postCheck = '' 38 ocaml -I ${findlib}/lib/ocaml/${ocaml.version}/site-lib/ test/test_runes.ml 39 ''; 40 41 meta = { 42 description = "Simple hash algorithms in OCaml"; 43 homepage = "https://github.com/mirage/digestif"; 44 license = lib.licenses.mit; 45 maintainers = [ lib.maintainers.vbgl ]; 46 }; 47}