1{
2 lib,
3 fetchurl,
4 buildDunePackage,
5 checkseum,
6 optint,
7 cmdliner,
8 bigstringaf,
9 alcotest,
10 camlzip,
11 base64,
12 ctypes,
13 fmt,
14 crowbar,
15 rresult,
16 astring,
17 bos,
18}:
19
20buildDunePackage rec {
21 pname = "decompress";
22 version = "1.5.3";
23
24 minimalOCamlVersion = "4.08";
25
26 src = fetchurl {
27 url = "https://github.com/mirage/decompress/releases/download/v${version}/decompress-${version}.tbz";
28 hash = "sha256-+R5peL7/P8thRA0y98mcmfHoZUtPsYQIdB02A1NzrGA=";
29 };
30
31 buildInputs = [ cmdliner ];
32 propagatedBuildInputs = [
33 optint
34 checkseum
35 ];
36 checkInputs = [
37 alcotest
38 astring
39 bigstringaf
40 bos
41 ctypes
42 fmt
43 camlzip
44 base64
45 crowbar
46 rresult
47 ];
48 doCheck = true;
49
50 meta = {
51 description = "Pure OCaml implementation of Zlib";
52 homepage = "https://github.com/mirage/decompress";
53 license = lib.licenses.mit;
54 maintainers = [ lib.maintainers.vbgl ];
55 mainProgram = "decompress.pipe";
56 };
57}