Skip to content

Commit

Permalink
ocamlPackages.duff: init at 0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
vbgl committed Oct 21, 2019
1 parent d46de73 commit bbce011
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
26 changes: 26 additions & 0 deletions pkgs/development/ocaml-modules/duff/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{ lib, fetchurl, buildDunePackage
, cstruct, fmt
, bos, cmdliner, fpath, logs
, alcotest
}:

buildDunePackage rec {
pname = "duff";
version = "0.2";
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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/ocaml-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ let

dtoa = callPackage ../development/ocaml-modules/dtoa { };

duff = callPackage ../development/ocaml-modules/duff { };

dune = callPackage ../development/tools/ocaml/dune { };

earley = callPackage ../development/ocaml-modules/earley { };
Expand Down

0 comments on commit bbce011

Please sign in to comment.