2019-10-21 05:36:52 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
|
|
|
, checkseum, cmdliner
|
|
|
|
, alcotest, bos, camlzip, mmap, re
|
2017-07-01 12:57:36 +00:00
|
|
|
}:
|
|
|
|
|
2019-10-21 05:36:52 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
version = "0.9.0";
|
|
|
|
pname = "decompress";
|
2017-07-01 12:57:36 +00:00
|
|
|
|
2019-10-21 05:36:52 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/decompress/releases/download/v${version}/decompress-v${version}.tbz";
|
|
|
|
sha256 = "0fryhcvv96vfca51c7kqdn3n3canqsbbvfbi75ya6lca4lmpipbh";
|
2017-07-01 12:57:36 +00:00
|
|
|
};
|
|
|
|
|
2019-10-21 05:36:52 +00:00
|
|
|
buildInputs = [ cmdliner ];
|
|
|
|
propagatedBuildInputs = [ checkseum ];
|
|
|
|
checkInputs = lib.optionals doCheck [ alcotest bos camlzip mmap re ];
|
|
|
|
doCheck = true;
|
2017-07-01 12:57:36 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Pure OCaml implementation of Zlib";
|
2019-10-21 05:36:52 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
homepage = "https://github.com/mirage/decompress";
|
2017-07-01 12:57:36 +00:00
|
|
|
};
|
|
|
|
}
|