2019-10-21 07:36:52 +02:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
2021-03-16 13:07:17 +01:00
|
|
|
, checkseum, bigarray-compat, optint, cmdliner
|
|
|
|
, bigstringaf, alcotest, camlzip, base64, ctypes, fmt
|
2017-07-01 14:57:36 +02:00
|
|
|
}:
|
|
|
|
|
2019-10-21 07:36:52 +02:00
|
|
|
buildDunePackage rec {
|
2021-08-03 14:15:46 +02:00
|
|
|
version = "1.4.2";
|
2021-01-21 01:24:35 +01:00
|
|
|
pname = "decompress";
|
2017-07-01 14:57:36 +02:00
|
|
|
|
2021-02-16 08:39:46 +01:00
|
|
|
minimumOCamlVersion = "4.07";
|
|
|
|
|
2021-01-21 01:24:35 +01:00
|
|
|
useDune2 = true;
|
2020-11-01 07:49:39 +01:00
|
|
|
|
2021-01-21 01:24:35 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/decompress/releases/download/v${version}/decompress-v${version}.tbz";
|
2021-08-03 14:15:46 +02:00
|
|
|
sha256 = "822f125b46c87f4a902c334db8c86d4d5f33ebe978e93c40351a4d3269b95225";
|
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 ];
|
2021-02-16 08:39:46 +01:00
|
|
|
propagatedBuildInputs = [ optint bigarray-compat checkseum ];
|
2021-03-16 13:07:17 +01:00
|
|
|
checkInputs = [ alcotest bigstringaf ctypes fmt camlzip base64 ];
|
2021-01-21 01:24:35 +01: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";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
homepage = "https://github.com/mirage/decompress";
|
|
|
|
};
|
2017-07-01 14:57:36 +02:00
|
|
|
}
|