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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
743 B
Nix
Raw Normal View History

{ lib
, fetchurl
, buildDunePackage
2022-07-02 05:54:44 +00:00
, fmt
, 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;
checkInputs = [
alcotest
crowbar
hxd
bigstringaf
];
2019-10-07 06:24:04 +00:00
meta = {
description = "Pure OCaml implementation of libXdiff (Rabins fingerprint)";
homepage = "https://github.com/mirage/duff";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.vbgl ];
};
}