depot/third_party/nixpkgs/pkgs/development/ocaml-modules/duff/default.nix
Default email 07d6a74cbb Project import generated by Copybara.
GitOrigin-RevId: f5e8bdd07d1afaabf6b37afc5497b1e498b8046f
2021-03-19 18:17:44 +01:00

34 lines
790 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ lib, fetchurl, buildDunePackage, fetchpatch
, stdlib-shims, bigarray-compat, fmt
, alcotest, hxd, crowbar, bigstringaf
}:
buildDunePackage rec {
pname = "duff";
version = "0.4";
useDune2 = true;
src = fetchurl {
url = "https://github.com/mirage/duff/releases/download/v${version}/duff-v${version}.tbz";
sha256 = "4795e8344a2c2562e0ef6c44ab742334b5cd807637354715889741b20a461da4";
};
propagatedBuildInputs = [ stdlib-shims bigarray-compat fmt ];
doCheck = true;
checkInputs = [
alcotest
crowbar
hxd
bigstringaf
];
meta = {
description = "Pure OCaml implementation of libXdiff (Rabins fingerprint)";
homepage = "https://github.com/mirage/duff";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.vbgl ];
};
}