2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
|
|
|
, checkseum, cmdliner
|
|
|
|
, alcotest, bos, camlzip, mmap, re
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
version = "0.9.0";
|
|
|
|
pname = "decompress";
|
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
useDune2 = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/decompress/releases/download/v${version}/decompress-v${version}.tbz";
|
|
|
|
sha256 = "0fryhcvv96vfca51c7kqdn3n3canqsbbvfbi75ya6lca4lmpipbh";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cmdliner ];
|
|
|
|
propagatedBuildInputs = [ checkseum ];
|
|
|
|
checkInputs = lib.optionals doCheck [ alcotest bos camlzip mmap re ];
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Pure OCaml implementation of Zlib";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
homepage = "https://github.com/mirage/decompress";
|
|
|
|
};
|
|
|
|
}
|