2021-03-19 17:17:44 +00:00
|
|
|
|
{ lib, fetchurl, buildDunePackage, fetchpatch
|
2021-02-16 17:04:54 +00:00
|
|
|
|
, stdlib-shims, bigarray-compat, fmt
|
|
|
|
|
, alcotest, hxd, crowbar, bigstringaf
|
2020-04-24 23:36:52 +00:00
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
|
pname = "duff";
|
2021-03-19 17:17:44 +00:00
|
|
|
|
version = "0.4";
|
2020-11-30 08:33:03 +00:00
|
|
|
|
|
|
|
|
|
useDune2 = true;
|
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
|
src = fetchurl {
|
|
|
|
|
url = "https://github.com/mirage/duff/releases/download/v${version}/duff-v${version}.tbz";
|
2021-03-19 17:17:44 +00:00
|
|
|
|
sha256 = "4795e8344a2c2562e0ef6c44ab742334b5cd807637354715889741b20a461da4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
2021-02-16 17:04:54 +00:00
|
|
|
|
propagatedBuildInputs = [ stdlib-shims bigarray-compat fmt ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
doCheck = true;
|
2021-02-16 17:04:54 +00:00
|
|
|
|
checkInputs = [
|
|
|
|
|
alcotest
|
|
|
|
|
crowbar
|
|
|
|
|
hxd
|
|
|
|
|
bigstringaf
|
|
|
|
|
];
|
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
|
description = "Pure OCaml implementation of libXdiff (Rabin’s fingerprint)";
|
|
|
|
|
homepage = "https://github.com/mirage/duff";
|
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
|
};
|
|
|
|
|
}
|