2022-03-01 15:42:22 +00:00
|
|
|
|
{ lib
|
|
|
|
|
, fetchurl
|
|
|
|
|
, buildDunePackage
|
2022-07-02 05:54:44 +00:00
|
|
|
|
, fmt
|
2022-03-01 15:42:22 +00:00
|
|
|
|
, alcotest
|
|
|
|
|
, hxd
|
|
|
|
|
, crowbar
|
|
|
|
|
, bigstringaf
|
2019-10-07 06:24:04 +00:00
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
|
pname = "duff";
|
2022-07-02 05:54:44 +00:00
|
|
|
|
version = "0.5";
|
2020-11-19 06:35:54 +00:00
|
|
|
|
|
2023-04-10 12:15:00 +00:00
|
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
|
duneVersion = "3";
|
|
|
|
|
|
2019-10-07 06:24:04 +00:00
|
|
|
|
src = fetchurl {
|
2022-07-02 05:54:44 +00:00
|
|
|
|
url = "https://github.com/mirage/duff/releases/download/v${version}/duff-${version}.tbz";
|
|
|
|
|
sha256 = "sha256-0eqpfPWNOHYjkcjXRnZUTUFF0/L9E+TNoOqKCETN5hI=";
|
2019-10-07 06:24:04 +00:00
|
|
|
|
};
|
|
|
|
|
|
2022-07-02 05:54:44 +00:00
|
|
|
|
propagatedBuildInputs = [ fmt ];
|
2019-10-07 06:24:04 +00:00
|
|
|
|
|
2023-04-10 12:15:00 +00:00
|
|
|
|
doCheck = true;
|
2022-03-01 15:42:22 +00:00
|
|
|
|
checkInputs = [
|
2021-02-16 07:39:46 +00:00
|
|
|
|
alcotest
|
|
|
|
|
crowbar
|
|
|
|
|
hxd
|
|
|
|
|
bigstringaf
|
|
|
|
|
];
|
|
|
|
|
|
2019-10-07 06:24:04 +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 ];
|
|
|
|
|
};
|
|
|
|
|
}
|