ocamlPackages.camlimages_4_2_4: init at 4.2.4
Version of camlimages which works above OCaml 4.02, but also below 4.06.
This commit is contained in:
parent
14f789f9e5
commit
638e73de83
75
pkgs/development/ocaml-modules/camlimages/4.2.4.nix
Normal file
75
pkgs/development/ocaml-modules/camlimages/4.2.4.nix
Normal file
@ -0,0 +1,75 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitLab
|
||||
, ocaml
|
||||
, findlib
|
||||
, omake
|
||||
, graphicsmagick
|
||||
, libpng
|
||||
, libjpeg
|
||||
, libexif
|
||||
, libtiff
|
||||
, libXpm
|
||||
, freetype
|
||||
, giflib
|
||||
, ghostscript
|
||||
}:
|
||||
|
||||
assert lib.versionOlder ocaml.version "4.06";
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ocaml${ocaml.version}-${pname}-${version}";
|
||||
pname = "camlimages";
|
||||
version = "4.2.4";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "camlspotter";
|
||||
repo = pname;
|
||||
rev = "c4f0ec4178fd18cb85872181965c5f020c349160";
|
||||
sha256 = "17hvsql5dml7ialjcags8wphs7w6z88b2rgjir1382bg8vn62bkr";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
omake
|
||||
ocaml
|
||||
findlib
|
||||
graphicsmagick
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
libpng
|
||||
libjpeg
|
||||
libexif
|
||||
libtiff
|
||||
libXpm
|
||||
freetype
|
||||
giflib
|
||||
ghostscript
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
omake
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preBuild
|
||||
omake install
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
meta = with lib; {
|
||||
# 4.2.5 requires OCaml >= 4.06
|
||||
branch = "4.2.4";
|
||||
homepage = "https://gitlab.com/camlspotter/camlimages";
|
||||
description = "OCaml image processing library";
|
||||
license = licenses.lgpl2Only;
|
||||
maintainers = [
|
||||
maintainers.vbgl
|
||||
maintainers.sternenseemann
|
||||
];
|
||||
};
|
||||
}
|
@ -124,6 +124,9 @@ let
|
||||
else callPackage ../development/ocaml-modules/camlimages/4.1.2.nix {
|
||||
libpng = pkgs.libpng12;
|
||||
};
|
||||
|
||||
camlimages_4_2_4 = callPackage ../development/ocaml-modules/camlimages/4.2.4.nix { };
|
||||
|
||||
camlimages = callPackage ../development/ocaml-modules/camlimages { };
|
||||
|
||||
benchmark = callPackage ../development/ocaml-modules/benchmark { };
|
||||
|
Loading…
Reference in New Issue
Block a user