2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
2021-03-19 17:17:44 +00:00
|
|
|
, checkseum, bigarray-compat, optint, cmdliner
|
|
|
|
, bigstringaf, alcotest, camlzip, base64, ctypes, fmt
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "1.4.0";
|
2021-02-05 17:12:51 +00:00
|
|
|
pname = "decompress";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-16 17:04:54 +00:00
|
|
|
minimumOCamlVersion = "4.07";
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
useDune2 = true;
|
2020-11-03 02:18:15 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/decompress/releases/download/v${version}/decompress-v${version}.tbz";
|
2021-05-20 23:08:51 +00:00
|
|
|
sha256 = "d1669e07446d73dd5e16f020d4a1682abcbb1b7a1e3bf19b805429636c26a19b";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
buildInputs = [ cmdliner ];
|
2021-02-16 17:04:54 +00:00
|
|
|
propagatedBuildInputs = [ optint bigarray-compat checkseum ];
|
2021-03-19 17:17:44 +00:00
|
|
|
checkInputs = [ alcotest bigstringaf ctypes fmt camlzip base64 ];
|
2021-02-05 17:12:51 +00:00
|
|
|
doCheck = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = {
|
|
|
|
description = "Pure OCaml implementation of Zlib";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
homepage = "https://github.com/mirage/decompress";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|