depot/third_party/nixpkgs/pkgs/development/ocaml-modules/duff/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

40 lines
743 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
, fmt
, alcotest
, hxd
, crowbar
, bigstringaf
}:
buildDunePackage rec {
pname = "duff";
version = "0.5";
minimalOCamlVersion = "4.08";
duneVersion = "3";
src = fetchurl {
url = "https://github.com/mirage/duff/releases/download/v${version}/duff-${version}.tbz";
sha256 = "sha256-+UU89Ko7aFDv6MxvE/BT6+XyER+vF3zqv7sD5dmtbt4=";
};
propagatedBuildInputs = [ 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 ];
};
}