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