2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
2021-02-16 17:04:54 +00:00
|
|
|
, checkseum, bigarray-compat, optint
|
|
|
|
, bigstringaf, alcotest, hxd, camlzip, base64
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
2021-02-16 17:04:54 +00:00
|
|
|
version = "1.2.0";
|
2021-02-05 17:12:51 +00:00
|
|
|
pname = "decompress";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-16 17:04:54 +00:00
|
|
|
minimumOCamlVersion = "4.07";
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
useDune2 = true;
|
2020-11-03 02:18:15 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/decompress/releases/download/v${version}/decompress-v${version}.tbz";
|
2021-02-16 17:04:54 +00:00
|
|
|
sha256 = "1c3sq9a6kpzl0pj3gmg7w18ssjjl70yv0r3l7qjprcncjx23v62i";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-16 17:04:54 +00:00
|
|
|
propagatedBuildInputs = [ optint bigarray-compat checkseum ];
|
|
|
|
checkInputs = [ alcotest bigstringaf hxd camlzip base64 ];
|
2021-02-05 17:12:51 +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";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
homepage = "https://github.com/mirage/decompress";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|