mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 16:11:58 +00:00
0649c8bde7
By default all plugins from pkgs.gimpPlugins set are enabled. Default location of plugins changed from $out/${gimp.name} to $out/lib/gimp/${majorVersion}. Resulting derivation for gimp+plugins is set as search path for plugins by default (additional tweaking in gimprc done for old plugin scheme should be removed)
49 lines
1.6 KiB
Nix
49 lines
1.6 KiB
Nix
{ stdenv, fetchurl, pkgconfig, intltool, babl, gegl, gtk, 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, wrapPython }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "gimp-2.8.16";
|
|
|
|
# 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 {
|
|
url = "http://download.gimp.org/pub/gimp/v2.8/${name}.tar.bz2";
|
|
sha256 = "1dsgazia9hmab8cw3iis7s69dvqyfj5wga7ds7w2q5mms1xqbqwm";
|
|
};
|
|
|
|
buildInputs =
|
|
[ pkgconfig intltool babl gegl gtk 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
|
|
];
|
|
|
|
pythonPath = [ pygtk ];
|
|
|
|
postInstall = ''wrapPythonPrograms'';
|
|
|
|
passthru = { inherit gtk; }; # probably its a good idea to use the same gtk in plugins ?
|
|
|
|
#configureFlags = [ "--disable-print" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
# "screenshot" needs this.
|
|
NIX_LDFLAGS = "-rpath ${xorg.libX11}/lib"
|
|
+ stdenv.lib.optionalString stdenv.isDarwin " -lintl";
|
|
|
|
meta = {
|
|
description = "The GNU Image Manipulation Program";
|
|
homepage = http://www.gimp.org/;
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
|
platforms = stdenv.lib.platforms.unix;
|
|
};
|
|
}
|