2012-06-04 18:38:47 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, babl, gegl, gtk, glib, gdk_pixbuf
|
2013-06-29 15:07:15 +01:00
|
|
|
, pango, cairo, freetype, fontconfig, lcms, libpng, libjpeg, poppler, libtiff
|
2012-06-04 18:38:47 +01:00
|
|
|
, webkit, libmng, librsvg, libwmf, zlib, libzip, ghostscript, aalib, jasper
|
2015-09-15 10:26:18 +01:00
|
|
|
, python, pygtk, libart_lgpl, libexif, gettext, xorg, wrapPython }:
|
2012-06-04 18:38:47 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-04-26 13:26:45 +01:00
|
|
|
name = "gimp-${version}";
|
2016-07-17 20:49:41 +01:00
|
|
|
version = "2.8.18";
|
2013-06-28 22:04:43 +01:00
|
|
|
|
2016-02-25 21:24:45 +00:00
|
|
|
# This declarations for `gimp-with-plugins` wrapper,
|
|
|
|
# (used for determining $out/lib/gimp/${majorVersion}/ paths)
|
|
|
|
majorVersion = "2.0";
|
|
|
|
targetPluginDir = "$out/lib/gimp/${majorVersion}/plug-ins";
|
|
|
|
targetScriptDir = "$out/lib/gimp/${majorVersion}/scripts";
|
|
|
|
|
2012-06-04 18:38:47 +01:00
|
|
|
src = fetchurl {
|
2014-05-22 10:48:42 +01:00
|
|
|
url = "http://download.gimp.org/pub/gimp/v2.8/${name}.tar.bz2";
|
2016-07-17 20:49:41 +01:00
|
|
|
sha256 = "0halh6sl3d2j9gahyabj6h6r3yyldcy7sfb4qrfazpkqqr3j5p9r";
|
2012-06-04 18:38:47 +01:00
|
|
|
};
|
2013-06-28 22:04:43 +01:00
|
|
|
|
|
|
|
buildInputs =
|
2012-06-04 18:38:47 +01:00
|
|
|
[ pkgconfig intltool babl gegl gtk glib gdk_pixbuf pango cairo
|
2013-06-29 15:07:15 +01:00
|
|
|
freetype fontconfig lcms libpng libjpeg poppler libtiff webkit
|
2012-06-04 18:38:47 +01:00
|
|
|
libmng librsvg libwmf zlib libzip ghostscript aalib jasper
|
2015-09-15 10:26:18 +01:00
|
|
|
python pygtk libart_lgpl libexif gettext xorg.libXpm
|
2014-01-31 06:05:53 +00:00
|
|
|
wrapPython
|
2012-06-04 18:38:47 +01:00
|
|
|
];
|
|
|
|
|
2014-01-31 06:05:53 +00:00
|
|
|
pythonPath = [ pygtk ];
|
|
|
|
|
2016-08-29 00:41:17 +01:00
|
|
|
postFixup = ''
|
|
|
|
wrapPythonProgramsIn $out/lib/gimp/2.0/plug-ins/
|
|
|
|
wrapProgram $out/bin/gimp \
|
|
|
|
--prefix PYTHONPATH : "$PYTHONPATH" \
|
|
|
|
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
|
|
|
|
'';
|
2014-01-31 06:05:53 +00:00
|
|
|
|
2012-06-04 18:38:47 +01:00
|
|
|
passthru = { inherit gtk; }; # probably its a good idea to use the same gtk in plugins ?
|
|
|
|
|
|
|
|
#configureFlags = [ "--disable-print" ];
|
|
|
|
|
2016-01-17 00:28:58 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2012-06-04 18:38:47 +01:00
|
|
|
# "screenshot" needs this.
|
2016-01-24 07:29:49 +00:00
|
|
|
NIX_LDFLAGS = "-rpath ${xorg.libX11.out}/lib"
|
2015-04-01 21:44:17 +01:00
|
|
|
+ stdenv.lib.optionalString stdenv.isDarwin " -lintl";
|
2012-06-04 18:38:47 +01: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;
|
2016-09-01 18:39:33 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2012-06-04 18:38:47 +01:00
|
|
|
};
|
|
|
|
}
|