2012-06-04 17:38:47 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, babl, gegl, gtk, glib, gdk_pixbuf
|
2013-06-29 14:07:15 +00:00
|
|
|
, pango, cairo, freetype, fontconfig, lcms, libpng, libjpeg, poppler, libtiff
|
2012-06-04 17:38:47 +00:00
|
|
|
, webkit, libmng, librsvg, libwmf, zlib, libzip, ghostscript, aalib, jasper
|
2015-09-15 09:26:18 +00:00
|
|
|
, python, pygtk, libart_lgpl, libexif, gettext, xorg, wrapPython }:
|
2012-06-04 17:38:47 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-08-27 16:46:24 +00:00
|
|
|
name = "gimp-2.8.14";
|
2013-06-28 21:04:43 +00:00
|
|
|
|
2012-06-04 17:38:47 +00:00
|
|
|
src = fetchurl {
|
2014-05-22 09:48:42 +00:00
|
|
|
url = "http://download.gimp.org/pub/gimp/v2.8/${name}.tar.bz2";
|
2014-08-27 16:46:24 +00:00
|
|
|
sha256 = "d82a958641c9c752d68e35f65840925c08e314cea90222ad845892a40e05b22d";
|
2012-06-04 17:38:47 +00:00
|
|
|
};
|
2013-06-28 21:04:43 +00:00
|
|
|
|
|
|
|
buildInputs =
|
2012-06-04 17:38:47 +00:00
|
|
|
[ pkgconfig intltool babl gegl gtk glib gdk_pixbuf pango cairo
|
2013-06-29 14:07:15 +00:00
|
|
|
freetype fontconfig lcms libpng libjpeg poppler libtiff webkit
|
2012-06-04 17:38:47 +00:00
|
|
|
libmng librsvg libwmf zlib libzip ghostscript aalib jasper
|
2015-09-15 09:26:18 +00:00
|
|
|
python pygtk libart_lgpl libexif gettext xorg.libXpm
|
2014-01-31 06:05:53 +00:00
|
|
|
wrapPython
|
2012-06-04 17:38:47 +00:00
|
|
|
];
|
|
|
|
|
2014-01-31 06:05:53 +00:00
|
|
|
pythonPath = [ pygtk ];
|
|
|
|
|
|
|
|
postInstall = ''wrapPythonPrograms'';
|
|
|
|
|
2012-06-04 17:38:47 +00:00
|
|
|
passthru = { inherit gtk; }; # probably its a good idea to use the same gtk in plugins ?
|
|
|
|
|
|
|
|
#configureFlags = [ "--disable-print" ];
|
|
|
|
|
|
|
|
# "screenshot" needs this.
|
2015-09-15 09:26:18 +00:00
|
|
|
NIX_LDFLAGS = "-rpath ${xorg.libX11}/lib"
|
2015-04-01 20:44:17 +00:00
|
|
|
+ stdenv.lib.optionalString stdenv.isDarwin " -lintl";
|
2012-06-04 17:38:47 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "The GNU Image Manipulation Program";
|
|
|
|
homepage = http://www.gimp.org/;
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2015-04-01 20:44:17 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2012-06-04 17:38:47 +00:00
|
|
|
};
|
|
|
|
}
|