nixpkgs/pkgs/development/ocaml-modules/duff/default.nix

35 lines
766 B
Nix
Raw Normal View History

2019-10-07 07:24:04 +01:00
{ lib, fetchurl, buildDunePackage
, stdlib-shims, bigarray-compat, fmt
, alcotest, hxd, crowbar, bigstringaf
2019-10-07 07:24:04 +01:00
}:
buildDunePackage rec {
pname = "duff";
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";
sha256 = "1lb67yxk93ifj94p1i3swjbnj5xy8j6xzs72bwvq6cffx5xykznm";
2019-10-07 07:24:04 +01:00
};
propagatedBuildInputs = [ stdlib-shims bigarray-compat fmt ];
2019-10-07 07:24:04 +01:00
doCheck = true;
checkInputs = [
alcotest
crowbar
hxd
bigstringaf
];
2019-10-07 07:24:04 +01:00
meta = {
description = "Pure OCaml implementation of libXdiff (Rabins fingerprint)";
homepage = "https://github.com/mirage/duff";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.vbgl ];
};
}