2019-10-07 07:24:04 +01:00
|
|
|
|
{ lib, fetchurl, buildDunePackage
|
2021-02-16 07:39:46 +00:00
|
|
|
|
, stdlib-shims, bigarray-compat, fmt
|
|
|
|
|
, alcotest, hxd, crowbar, bigstringaf
|
2019-10-07 07:24:04 +01:00
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
|
pname = "duff";
|
2021-02-16 07:39:46 +00:00
|
|
|
|
version = "0.3";
|
2020-11-19 06:35:54 +00:00
|
|
|
|
|
|
|
|
|
useDune2 = true;
|
|
|
|
|
|
2019-10-07 07:24:04 +01:00
|
|
|
|
src = fetchurl {
|
|
|
|
|
url = "https://github.com/mirage/duff/releases/download/v${version}/duff-v${version}.tbz";
|
2021-02-16 07:39:46 +00:00
|
|
|
|
sha256 = "1lb67yxk93ifj94p1i3swjbnj5xy8j6xzs72bwvq6cffx5xykznm";
|
2019-10-07 07:24:04 +01:00
|
|
|
|
};
|
|
|
|
|
|
2021-02-16 07:39:46 +00:00
|
|
|
|
propagatedBuildInputs = [ stdlib-shims bigarray-compat fmt ];
|
2019-10-07 07:24:04 +01:00
|
|
|
|
|
|
|
|
|
doCheck = true;
|
2021-02-16 07:39:46 +00:00
|
|
|
|
checkInputs = [
|
|
|
|
|
alcotest
|
|
|
|
|
crowbar
|
|
|
|
|
hxd
|
|
|
|
|
bigstringaf
|
|
|
|
|
];
|
|
|
|
|
|
2019-10-07 07:24:04 +01: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 ];
|
|
|
|
|
};
|
|
|
|
|
}
|