2016-12-02 19:36:07 +00:00
|
|
|
{ stdenv, fetchurl, omake, ocaml, libtiff, libjpeg, libpng, giflib, findlib, libXpm, freetype, graphicsmagick, ghostscript }:
|
2013-06-04 19:49:10 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
|
2016-12-02 19:36:07 +00:00
|
|
|
buildInputs = [ ocaml omake 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;
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
rm ./configure
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
omake
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
omake install
|
|
|
|
'';
|
|
|
|
|
2014-10-03 23:27:14 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-11-06 19:40:20 +00:00
|
|
|
branch = "4.0";
|
2014-10-03 23:27:14 +01:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|