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-08-05 21:33:18 +00:00
|
|
|
version = "1.4.2";
|
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-08-05 21:33:18 +00:00
|
|
|
sha256 = "822f125b46c87f4a902c334db8c86d4d5f33ebe978e93c40351a4d3269b95225";
|
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
|
|
|
}
|