ca5ab3a501
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
32 lines
726 B
Nix
32 lines
726 B
Nix
{ lib, fetchurl, buildDunePackage, ocaml
|
||
, fmt
|
||
, alcotest, hxd, crowbar, bigstringaf
|
||
}:
|
||
|
||
buildDunePackage rec {
|
||
pname = "duff";
|
||
version = "0.5";
|
||
|
||
src = fetchurl {
|
||
url = "https://github.com/mirage/duff/releases/download/v${version}/duff-${version}.tbz";
|
||
sha256 = "sha256-0eqpfPWNOHYjkcjXRnZUTUFF0/L9E+TNoOqKCETN5hI=";
|
||
};
|
||
|
||
propagatedBuildInputs = [ fmt ];
|
||
|
||
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
||
checkInputs = [
|
||
alcotest
|
||
crowbar
|
||
hxd
|
||
bigstringaf
|
||
];
|
||
|
||
|
||
meta = {
|
||
description = "Pure OCaml implementation of libXdiff (Rabin’s fingerprint)";
|
||
homepage = "https://github.com/mirage/duff";
|
||
license = lib.licenses.mit;
|
||
maintainers = [ lib.maintainers.vbgl ];
|
||
};
|
||
}
|