Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchurl, 4 buildDunePackage, 5 fmt, 6 alcotest, 7 hxd, 8 crowbar, 9 bigstringaf, 10}: 11 12buildDunePackage rec { 13 pname = "duff"; 14 version = "0.5"; 15 16 minimalOCamlVersion = "4.08"; 17 duneVersion = "3"; 18 19 src = fetchurl { 20 url = "https://github.com/mirage/duff/releases/download/v${version}/duff-${version}.tbz"; 21 sha256 = "sha256-+UU89Ko7aFDv6MxvE/BT6+XyER+vF3zqv7sD5dmtbt4="; 22 }; 23 24 propagatedBuildInputs = [ fmt ]; 25 26 doCheck = true; 27 checkInputs = [ 28 alcotest 29 crowbar 30 hxd 31 bigstringaf 32 ]; 33 34 meta = { 35 description = "Pure OCaml implementation of libXdiff (Rabins fingerprint)"; 36 homepage = "https://github.com/mirage/duff"; 37 license = lib.licenses.mit; 38 maintainers = [ lib.maintainers.vbgl ]; 39 }; 40}