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