Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / ocaml-modules / duff / default.nix
bloba57f8564d9e1d0bdee66711efeadf3fc0468e57a
1 { lib, fetchurl, buildDunePackage, fetchpatch
2 , stdlib-shims, bigarray-compat, fmt
3 , alcotest, hxd, crowbar, bigstringaf
4 }:
6 buildDunePackage rec {
7   pname = "duff";
8   version = "0.4";
10   useDune2 = true;
12   src = fetchurl {
13     url = "https://github.com/mirage/duff/releases/download/v${version}/duff-v${version}.tbz";
14     sha256 = "4795e8344a2c2562e0ef6c44ab742334b5cd807637354715889741b20a461da4";
15   };
17   propagatedBuildInputs = [ stdlib-shims bigarray-compat fmt ];
19   doCheck = true;
20   checkInputs = [
21     alcotest
22     crowbar
23     hxd
24     bigstringaf
25   ];
28   meta = {
29     description = "Pure OCaml implementation of libXdiff (Rabin’s fingerprint)";
30     homepage = "https://github.com/mirage/duff";
31     license = lib.licenses.mit;
32     maintainers = [ lib.maintainers.vbgl ];
33   };