2022-10-11 07:50:54 +01:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
|
|
|
, checkseum, optint, cmdliner
|
|
|
|
, bigstringaf, alcotest, camlzip, base64, ctypes, fmt, crowbar, rresult
|
2017-07-01 13:57:36 +01:00
|
|
|
}:
|
|
|
|
|
2019-10-21 06:36:52 +01:00
|
|
|
buildDunePackage rec {
|
2021-01-21 00:24:35 +00:00
|
|
|
pname = "decompress";
|
2022-10-11 07:50:54 +01:00
|
|
|
version = "1.5.1";
|
2017-07-01 13:57:36 +01:00
|
|
|
|
2022-10-11 07:50:54 +01:00
|
|
|
minimalOCamlVersion = "4.08";
|
2020-11-01 06:49:39 +00:00
|
|
|
|
2021-01-21 00:24:35 +00:00
|
|
|
src = fetchurl {
|
2022-10-11 07:50:54 +01:00
|
|
|
url = "https://github.com/mirage/decompress/releases/download/v${version}/decompress-${version}.tbz";
|
|
|
|
sha256 = "sha256-y/OVojFxhksJQQvvtS38SF7ZnMEQhAtwDey0ISwypP4=";
|
2021-01-21 00:24:35 +00:00
|
|
|
};
|
2017-07-01 13:57:36 +01:00
|
|
|
|
2021-03-16 12:07:17 +00:00
|
|
|
buildInputs = [ cmdliner ];
|
2022-10-11 07:50:54 +01:00
|
|
|
propagatedBuildInputs = [ optint checkseum ];
|
|
|
|
checkInputs = [ alcotest bigstringaf ctypes fmt camlzip base64 crowbar rresult ];
|
|
|
|
doCheck = true;
|
2017-07-01 13:57:36 +01:00
|
|
|
|
2021-01-21 00:24:35 +00:00
|
|
|
meta = {
|
|
|
|
description = "Pure OCaml implementation of Zlib";
|
2022-05-14 00:48:49 +01:00
|
|
|
homepage = "https://github.com/mirage/decompress";
|
2021-01-21 00:24:35 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2022-05-14 00:48:49 +01:00
|
|
|
mainProgram = "decompress.pipe";
|
2021-01-21 00:24:35 +00:00
|
|
|
};
|
2017-07-01 13:57:36 +01:00
|
|
|
}
|