2023-02-09 11:40:11 +00:00
|
|
|
|
{ lib
|
|
|
|
|
, fetchurl
|
|
|
|
|
, buildDunePackage
|
2022-07-14 12:49:19 +00:00
|
|
|
|
, fmt
|
2023-02-09 11:40:11 +00:00
|
|
|
|
, alcotest
|
|
|
|
|
, hxd
|
|
|
|
|
, crowbar
|
|
|
|
|
, bigstringaf
|
2020-04-24 23:36:52 +00:00
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
|
pname = "duff";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
version = "0.5";
|
2020-11-30 08:33:03 +00:00
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
|
duneVersion = "3";
|
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
|
src = fetchurl {
|
2022-07-14 12:49:19 +00:00
|
|
|
|
url = "https://github.com/mirage/duff/releases/download/v${version}/duff-${version}.tbz";
|
|
|
|
|
sha256 = "sha256-0eqpfPWNOHYjkcjXRnZUTUFF0/L9E+TNoOqKCETN5hI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
|
propagatedBuildInputs = [ fmt ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
|
doCheck = true;
|
2023-02-09 11:40:11 +00:00
|
|
|
|
checkInputs = [
|
2021-02-16 17:04:54 +00:00
|
|
|
|
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 ];
|
|
|
|
|
};
|
|
|
|
|
}
|