1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00
nixpkgs/pkgs/development/ocaml-modules/camlimages/4.1.nix
Vincent Laporte c216448075 camlimages: update from 4.0.1 to 4.1.2
Previous version 4.0.1 is kept for OCaml 3.12
2014-11-01 08:37:40 +00:00

39 lines
971 B
Nix

{stdenv, fetchurl, omake, ocaml, omake_rc1, libtiff, libjpeg, libpng, giflib, findlib, libXpm, freetype, graphicsmagick, ghostscript }:
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.00";
let
pname = "camlimages";
version = "4.1.2";
in
stdenv.mkDerivation {
name = "${pname}-${version}";
src = fetchurl {
url = "https://bitbucket.org/camlspotter/camlimages/get/${version}.tar.bz2";
sha256 = "1ppddhfknpirj1vilm5dxgyp82kf7ahpvjmh7z75a1fnaqv3kpki";
};
buildInputs = [ocaml omake_rc1 findlib graphicsmagick ghostscript ];
propagatedBuildInputs = [libtiff libjpeg libpng giflib freetype libXpm ];
createFindlibDestdir = true;
buildPhase = ''
omake
'';
installPhase = ''
omake install
'';
meta = with stdenv.lib; {
homepage = https://bitbucket.org/camlspotter/camlimages;
description = "OCaml image processing library";
license = licenses.lgpl2;
maintainers = [ maintainers.vbgl ];
};
}