ocamlPackages.decompress: 0.6 → 0.9.0
ocamlPackages.git: 1.11.5 → 2.1.0 ocamlPackages.imagelib: 20171028 → 20191011 ocamlPackages.imagelib-unix: init
This commit is contained in:
committed by
Vincent Laporte
parent
ea5684b438
commit
8dc2173905
@@ -1,30 +1,27 @@
|
||||
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, topkg
|
||||
{ lib, fetchurl, buildDunePackage
|
||||
, checkseum, cmdliner
|
||||
, alcotest, bos, camlzip, mmap, re
|
||||
}:
|
||||
|
||||
if !stdenv.lib.versionAtLeast ocaml.version "4.03"
|
||||
then throw "decompress is not available for OCaml ${ocaml.version}"
|
||||
else
|
||||
buildDunePackage rec {
|
||||
version = "0.9.0";
|
||||
pname = "decompress";
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "0.6";
|
||||
name = "ocaml${ocaml.version}-decompress-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mirage";
|
||||
repo = "decompress";
|
||||
rev = "v${version}";
|
||||
sha256 = "0hfs5zrvimzvjwdg57vrxx9bb7irvlm07dk2yv3s5qhj30zimd08";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/mirage/decompress/releases/download/v${version}/decompress-v${version}.tbz";
|
||||
sha256 = "0fryhcvv96vfca51c7kqdn3n3canqsbbvfbi75ya6lca4lmpipbh";
|
||||
};
|
||||
|
||||
buildInputs = [ ocaml findlib ocamlbuild topkg ];
|
||||
|
||||
inherit (topkg) buildPhase installPhase;
|
||||
buildInputs = [ cmdliner ];
|
||||
propagatedBuildInputs = [ checkseum ];
|
||||
checkInputs = lib.optionals doCheck [ alcotest bos camlzip mmap re ];
|
||||
doCheck = true;
|
||||
|
||||
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;
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.vbgl ];
|
||||
homepage = "https://github.com/mirage/decompress";
|
||||
broken = !checkseum.hasC;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user