2020-04-24 23:36:52 +00:00
|
|
|
|
{ lib, fetchurl, buildDunePackage
|
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-02-16 17:04:54 +00:00
|
|
|
|
version = "0.3";
|
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-02-16 17:04:54 +00:00
|
|
|
|
sha256 = "1lb67yxk93ifj94p1i3swjbnj5xy8j6xzs72bwvq6cffx5xykznm";
|
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 ];
|
|
|
|
|
};
|
|
|
|
|
}
|