nixpkgs/pkgs/applications/graphics/gimp/2.8.nix

59 lines
2.0 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, intltool, babl, gegl, gtk2, glib, gdk_pixbuf
, pango, cairo, freetype, fontconfig, lcms, libpng, libjpeg, poppler, libtiff
, webkit, libmng, librsvg, libwmf, zlib, libzip, ghostscript, aalib, jasper
2016-11-22 08:14:00 +00:00
, python2Packages, libart_lgpl, libexif, gettext, xorg
, AppKit, Cocoa, gtk-mac-integration }:
let
2016-10-19 10:10:36 +01:00
inherit (python2Packages) pygtk wrapPython python;
in stdenv.mkDerivation rec {
name = "gimp-${version}";
2017-02-09 04:14:47 +00:00
version = "2.8.20";
2013-06-28 22:04:43 +01: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";
src = fetchurl {
2014-05-22 10:48:42 +01:00
url = "http://download.gimp.org/pub/gimp/v2.8/${name}.tar.bz2";
2017-02-09 04:14:47 +00:00
sha256 = "939ca1df70be865c672ffd654f4e20f188121d01601c5c90237214101533c805";
};
2013-06-28 22:04:43 +01:00
buildInputs =
[ pkgconfig intltool babl gegl gtk2 glib gdk_pixbuf pango cairo
freetype fontconfig lcms libpng libjpeg poppler libtiff webkit
libmng librsvg libwmf zlib libzip ghostscript aalib jasper
python pygtk libart_lgpl libexif gettext xorg.libXpm
wrapPython
2016-11-22 08:14:00 +00:00
]
++ stdenv.lib.optionals stdenv.isDarwin [ AppKit Cocoa gtk-mac-integration ];
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"
'';
passthru = { gtk = gtk2; }; # 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;
# "screenshot" needs this.
NIX_LDFLAGS = "-rpath ${xorg.libX11.out}/lib"
2015-04-01 21:44:17 +01:00
+ stdenv.lib.optionalString stdenv.isDarwin " -lintl";
meta = {
description = "The GNU Image Manipulation Program";
homepage = http://www.gimp.org/;
license = stdenv.lib.licenses.gpl3Plus;
2016-11-22 08:14:00 +00:00
platforms = stdenv.lib.platforms.unix;
};
}