2013-06-26 15:48:45 +01:00
|
|
|
{stdenv, fetchurl, omake, ocaml, omake_rc1, libtiff, libjpeg, libpng, giflib, findlib, libXpm, freetype, graphicsmagick, ghostscript }:
|
2013-06-04 19:49:10 +01:00
|
|
|
|
2014-10-31 12:25:53 +00:00
|
|
|
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.00";
|
|
|
|
|
2013-06-04 19:49:10 +01:00
|
|
|
let
|
|
|
|
pname = "camlimages";
|
2014-10-31 12:25:53 +00:00
|
|
|
version = "4.1.2";
|
2013-06-04 19:49:10 +01:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
2013-06-25 08:17:34 +01:00
|
|
|
src = fetchurl {
|
2014-10-31 12:25:53 +00:00
|
|
|
url = "https://bitbucket.org/camlspotter/camlimages/get/${version}.tar.bz2";
|
|
|
|
sha256 = "1ppddhfknpirj1vilm5dxgyp82kf7ahpvjmh7z75a1fnaqv3kpki";
|
2013-06-04 19:49:10 +01:00
|
|
|
};
|
|
|
|
|
2014-10-03 23:27:14 +01:00
|
|
|
buildInputs = [ocaml omake_rc1 findlib graphicsmagick ghostscript ];
|
2013-06-26 15:48:45 +01:00
|
|
|
|
2014-10-03 23:27:14 +01:00
|
|
|
propagatedBuildInputs = [libtiff libjpeg libpng giflib freetype libXpm ];
|
2013-06-04 19:49:10 +01:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
omake
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
omake install
|
|
|
|
'';
|
|
|
|
|
2014-10-03 23:27:14 +01: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 19:49:10 +01:00
|
|
|
};
|
|
|
|
}
|