aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/ocaml-modules/duff/default.nix
blob: 8c9dad42fd7a2e282e73cfb2d3ea31bff0dd6048 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ 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 (Rabin’s fingerprint)";
    homepage = "https://github.com/mirage/duff";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.vbgl ];
  };
}