2013-06-26 16:48:45 +02:00
|
|
|
{stdenv, fetchurl, omake, ocaml, omake_rc1, libtiff, libjpeg, libpng, giflib, findlib, libXpm, freetype, graphicsmagick, ghostscript }:
|
2013-06-04 20:49:10 +02:00
|
|
|
|
2014-10-31 13:25:53 +01:00
|
|
|
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.00";
|
|
|
|
|
2013-06-04 20:49:10 +02:00
|
|
|
let
|
|
|
|
pname = "camlimages";
|
2014-10-31 13:25:53 +01:00
|
|
|
version = "4.1.2";
|
2013-06-04 20:49:10 +02:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
2013-06-25 09:17:34 +02:00
|
|
|
src = fetchurl {
|
2014-10-31 13:25:53 +01:00
|
|
|
url = "https://bitbucket.org/camlspotter/camlimages/get/${version}.tar.bz2";
|
|
|
|
sha256 = "1ppddhfknpirj1vilm5dxgyp82kf7ahpvjmh7z75a1fnaqv3kpki";
|
2013-06-04 20:49:10 +02:00
|
|
|
};
|
|
|
|
|
2014-10-04 00:27:14 +02:00
|
|
|
buildInputs = [ocaml omake_rc1 findlib graphicsmagick ghostscript ];
|
2013-06-26 16:48:45 +02:00
|
|
|
|
2014-10-04 00:27:14 +02:00
|
|
|
propagatedBuildInputs = [libtiff libjpeg libpng giflib freetype libXpm ];
|
2013-06-04 20:49:10 +02:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
omake
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
omake install
|
|
|
|
'';
|
|
|
|
|
2014-10-04 00:27:14 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://bitbucket.org/camlspotter/camlimages;
|
|
|
|
description = "OCaml image processing library";
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
2013-06-04 20:49:10 +02:00
|
|
|
};
|
|
|
|
}
|