2022-10-21 18:38:19 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
|
|
|
, checkseum, optint, cmdliner
|
|
|
|
, bigstringaf, alcotest, camlzip, base64, ctypes, fmt, crowbar, rresult
|
2023-02-02 18:25:31 +00:00
|
|
|
, astring, bos
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
2021-02-05 17:12:51 +00:00
|
|
|
pname = "decompress";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "1.5.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2023-02-02 18:25:31 +00:00
|
|
|
duneVersion = "3";
|
2020-11-03 02:18:15 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
src = fetchurl {
|
2022-10-21 18:38:19 +00:00
|
|
|
url = "https://github.com/mirage/decompress/releases/download/v${version}/decompress-${version}.tbz";
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-qMmmuhMlFNVq02JvvV55EkhEg2AQNQ7hYdQ7spv1di4=";
|
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 ];
|
2022-10-21 18:38:19 +00:00
|
|
|
propagatedBuildInputs = [ optint checkseum ];
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ alcotest astring bigstringaf bos ctypes fmt camlzip base64 crowbar rresult ];
|
2022-10-21 18:38:19 +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";
|
2022-05-18 14:49:53 +00:00
|
|
|
homepage = "https://github.com/mirage/decompress";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2022-05-18 14:49:53 +00:00
|
|
|
mainProgram = "decompress.pipe";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|