3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/duff/default.nix
2020-11-26 06:55:12 +01:00

30 lines
730 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
, cstruct, fmt
, bos, cmdliner, fpath, logs
, alcotest
}:
buildDunePackage rec {
pname = "duff";
version = "0.2";
useDune2 = true;
src = fetchurl {
url = "https://github.com/mirage/duff/releases/download/v${version}/duff-v${version}.tbz";
sha256 = "0bi081w4349cqc1n9jsjh1lrcqlnv3nycmvh9fniscv8lz1c0gjq";
};
buildInputs = [ bos cmdliner fpath logs ] ++ lib.optional doCheck alcotest;
propagatedBuildInputs = [ cstruct fmt ];
doCheck = true;
meta = {
description = "Pure OCaml implementation of libXdiff (Rabins fingerprint)";
homepage = "https://github.com/mirage/duff";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.vbgl ];
};
}