Merge pull request #20658 from matthewbauer/gimp-darwin

GIMP on Darwin (use Quartz)
This commit is contained in:
Daiderd Jordan 2017-01-11 21:47:29 +01:00 committed by GitHub
commit 4488203d0c
3 changed files with 39 additions and 3 deletions

View File

@ -1,7 +1,8 @@
{ 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
, python2Packages, libart_lgpl, libexif, gettext, xorg }:
, python2Packages, libart_lgpl, libexif, gettext, xorg
, AppKit, Cocoa, gtk-mac-integration }:
let
inherit (python2Packages) pygtk wrapPython python;
@ -26,7 +27,8 @@ in stdenv.mkDerivation rec {
libmng librsvg libwmf zlib libzip ghostscript aalib jasper
python pygtk libart_lgpl libexif gettext xorg.libXpm
wrapPython
];
]
++ stdenv.lib.optionals stdenv.isDarwin [ AppKit Cocoa gtk-mac-integration ];
pythonPath = [ pygtk ];
@ -51,6 +53,6 @@ in stdenv.mkDerivation rec {
description = "The GNU Image Manipulation Program";
homepage = http://www.gimp.org/;
license = stdenv.lib.licenses.gpl3Plus;
platforms = stdenv.lib.platforms.linux;
platforms = stdenv.lib.platforms.unix;
};
}

View File

@ -0,0 +1,31 @@
{ stdenv, lib, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "gtk-mac-bundler-${version}";
version = "0.7.4";
src = fetchFromGitHub {
owner = "GNOME";
repo = "gtk-mac-bundler";
rev = "bundler-${version}";
sha256 = "1kyyq2hc217i5vhbfff0ldgv0r3aziwryd1xlck5cw3s6hgskbza";
};
installPhase = ''
mkdir -p $out/bin
substitute gtk-mac-bundler.in $out/bin/gtk-mac-bundler \
--subst-var-by PATH $out/share
chmod a+x $out/bin/gtk-mac-bundler
mkdir -p $out/share
cp -r bundler $out/share
'';
meta = with lib; {
description = "a helper script that creates application bundles form GTK+ executables for Mac OS X";
maintainers = [ maintainers.matthewbauer ];
platforms = platforms.darwin;
homepage = https://wiki.gnome.org/Projects/GTK+/OSX/Bundling;
license = licenses.gpl2;
};
}

View File

@ -7539,6 +7539,8 @@ in
gtk = gtk2;
};
gtk-mac-bundler = callPackage ../development/tools/gtk-mac-bundler {};
gtkspell2 = callPackage ../development/libraries/gtkspell { };
gtkspell3 = callPackage ../development/libraries/gtkspell/3.nix { };
@ -13350,6 +13352,7 @@ in
inherit (gnome2) libart_lgpl;
webkit = null;
lcms = lcms2;
inherit (darwin.apple_sdk.frameworks) AppKit Cocoa;
};
gimp = gimp_2_8;