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