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,26 +1,27 @@
|
||||
{ stdenv, fetchFromGitHub, which, ocaml, findlib, ocamlbuild, decompress }:
|
||||
{ lib, fetchFromGitHub, fetchpatch, buildDunePackage, decompress }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "20171028";
|
||||
name = "ocaml${ocaml.version}-imagelib-${version}";
|
||||
buildDunePackage rec {
|
||||
minimumOCamlVersion = "4.07";
|
||||
version = "20191011";
|
||||
pname = "imagelib";
|
||||
src = fetchFromGitHub {
|
||||
owner = "rlepigre";
|
||||
repo = "ocaml-imagelib";
|
||||
rev = "ocaml-imagelib_${version}";
|
||||
sha256 = "1frkrgcrv4ybdmqcfxpfsywx0hm1arxgxp32n8kzky6qip1g0zxf";
|
||||
rev = "03fed7733825cef7e0465163f398f6af810e2e75";
|
||||
sha256 = "0h7vgyss42nhlfqpbdnb54nxq86rskqi2ilx8b87r0hi19hqx463";
|
||||
};
|
||||
|
||||
buildInputs = [ which ocaml findlib ocamlbuild ];
|
||||
patches = [ (fetchpatch {
|
||||
url = "https://github.com/rlepigre/ocaml-imagelib/pull/24/commits/4704fd44adcda62e0d96ea5b1927071326aa6111.patch";
|
||||
sha256 = "0ipjab1hfa2v2pnd8g1k3q2ia0plgiw7crm3fa4w2aqpzdyabkb9";
|
||||
}) ];
|
||||
|
||||
propagatedBuildInputs = [ decompress ];
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
meta = {
|
||||
description = "Image formats such as PNG and PPM in OCaml";
|
||||
license = stdenv.lib.licenses.lgpl3;
|
||||
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
||||
license = lib.licenses.lgpl3;
|
||||
maintainers = [ lib.maintainers.vbgl ];
|
||||
inherit (src.meta) homepage;
|
||||
inherit (ocaml.meta) platforms;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
{ buildDunePackage, imagelib }:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "imagelib-unix";
|
||||
inherit (imagelib) version src meta;
|
||||
|
||||
propagatedBuildInputs = [ imagelib ];
|
||||
}
|
||||
Reference in New Issue
Block a user