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
|
|
|
|
|
|
|
let
|
|
|
|
ocaml_version = (builtins.parseDrvName ocaml.name).version;
|
|
|
|
pname = "camlimages";
|
|
|
|
version = "4.0.1";
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
2013-06-25 08:17:34 +01:00
|
|
|
src = fetchurl {
|
2013-06-04 19:49:10 +01:00
|
|
|
url = "https://bitbucket.org/camlspotter/camlimages/get/v4.0.1.tar.gz";
|
|
|
|
sha256 = "b40237c1505487049799a7af296eb3996b3fa08eab94415546f46d61355747c4";
|
|
|
|
};
|
|
|
|
|
2013-06-26 15:48:45 +01:00
|
|
|
buildInputs = [ocaml omake_rc1 findlib graphicsmagick ghostscript libtiff libjpeg libpng giflib freetype libXpm ];
|
|
|
|
|
|
|
|
propagatedbuildInputs = [libtiff libjpeg libpng giflib freetype libXpm ];
|
2013-06-04 19:49:10 +01:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
rm ./configure
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
omake
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
omake install
|
|
|
|
'';
|
|
|
|
|
|
|
|
#makeFlags = "BINDIR=$(out)/bin MANDIR=$(out)/usr/share/man/man1 DYPGENLIBDIR=$(out)/lib/ocaml/${ocaml_version}/site-lib";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://cristal.inria.fr/camlimages;
|
|
|
|
description = "Image manipulation library";
|
|
|
|
license = "GnuGPLV2";
|
|
|
|
# maintainers = [ stdenv.lib.maintainers.roconnor ];
|
|
|
|
};
|
|
|
|
}
|