2019-10-21 07:36:52 +02:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
2021-02-16 08:39:46 +01:00
|
|
|
, checkseum, bigarray-compat, optint
|
|
|
|
, bigstringaf, alcotest, hxd, camlzip, base64
|
2017-07-01 14:57:36 +02:00
|
|
|
}:
|
|
|
|
|
2019-10-21 07:36:52 +02:00
|
|
|
buildDunePackage rec {
|
2021-02-16 08:39:46 +01:00
|
|
|
version = "1.2.0";
|
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-02-16 08:39:46 +01:00
|
|
|
sha256 = "1c3sq9a6kpzl0pj3gmg7w18ssjjl70yv0r3l7qjprcncjx23v62i";
|
2021-01-21 01:24:35 +01:00
|
|
|
};
|
2017-07-01 14:57:36 +02:00
|
|
|
|
2021-02-16 08:39:46 +01:00
|
|
|
propagatedBuildInputs = [ optint bigarray-compat checkseum ];
|
|
|
|
checkInputs = [ alcotest bigstringaf hxd 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
|
|
|
}
|