ocamlPackages.decompress: init at 0.6

decompress is a pure OCaml implementation of Zlib.

Homepage: https://github.com/mirage/decompress
This commit is contained in:
Vincent Laporte 2017-07-01 12:57:36 +00:00
parent 982af09d2c
commit 6eb2d7d44b
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,30 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, topkg, opam
}:
if !stdenv.lib.versionAtLeast ocaml.version "4.03"
then throw "decompress is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
version = "0.6";
name = "ocaml${ocaml.version}-decompress-${version}";
src = fetchFromGitHub {
owner = "mirage";
repo = "decompress";
rev = "v${version}";
sha256 = "0hfs5zrvimzvjwdg57vrxx9bb7irvlm07dk2yv3s5qhj30zimd08";
};
buildInputs = [ ocaml findlib ocamlbuild topkg opam ];
inherit (topkg) buildPhase installPhase;
meta = {
description = "Pure OCaml implementation of Zlib";
license = stdenv.lib.licenses.mit;
maintainers = [ stdenv.lib.maintainers.vbgl ];
inherit (src.meta) homepage;
inherit (ocaml.meta) platforms;
};
}

View File

@ -172,6 +172,8 @@ let
ctypes = callPackage ../development/ocaml-modules/ctypes { }; ctypes = callPackage ../development/ocaml-modules/ctypes { };
decompress = callPackage ../development/ocaml-modules/decompress { };
dolmen = callPackage ../development/ocaml-modules/dolmen { }; dolmen = callPackage ../development/ocaml-modules/dolmen { };
dolog = callPackage ../development/ocaml-modules/dolog { }; dolog = callPackage ../development/ocaml-modules/dolog { };