f0b078ef9d
* ocamlPackages.hxd: 0.2.0 -> 0.3.1 ocamlPackages.hxd: disable lwt by default on OCaml 4.06 (syntax error) * ocamlPackages.duff: 0.3 -> 0.4 * ocamlPackages.decompress: 1.2.0 -> 1.3.0 Keep decompress 1.2.0 around as decompress-1-2 until imagelib supports decompress 1.3.0: https://github.com/rlepigre/ocaml-imagelib/issues/49 * ocamlPackages.carton*: 0.2.0 -> 0.4.0 * ocamlPackages.git: 3.3.0 -> 3.3.2
35 lines
790 B
Nix
35 lines
790 B
Nix
{ lib, fetchurl, buildDunePackage, fetchpatch
|
||
, stdlib-shims, bigarray-compat, fmt
|
||
, alcotest, hxd, crowbar, bigstringaf
|
||
}:
|
||
|
||
buildDunePackage rec {
|
||
pname = "duff";
|
||
version = "0.4";
|
||
|
||
useDune2 = true;
|
||
|
||
src = fetchurl {
|
||
url = "https://github.com/mirage/duff/releases/download/v${version}/duff-v${version}.tbz";
|
||
sha256 = "4795e8344a2c2562e0ef6c44ab742334b5cd807637354715889741b20a461da4";
|
||
};
|
||
|
||
propagatedBuildInputs = [ stdlib-shims bigarray-compat fmt ];
|
||
|
||
doCheck = true;
|
||
checkInputs = [
|
||
alcotest
|
||
crowbar
|
||
hxd
|
||
bigstringaf
|
||
];
|
||
|
||
|
||
meta = {
|
||
description = "Pure OCaml implementation of libXdiff (Rabin’s fingerprint)";
|
||
homepage = "https://github.com/mirage/duff";
|
||
license = lib.licenses.mit;
|
||
maintainers = [ lib.maintainers.vbgl ];
|
||
};
|
||
}
|