diff --git a/pkgs/applications/graphics/gimp/2.8.nix b/pkgs/applications/graphics/gimp/2.8.nix index b123dcade1d7..4cb67cde7518 100644 --- a/pkgs/applications/graphics/gimp/2.8.nix +++ b/pkgs/applications/graphics/gimp/2.8.nix @@ -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; }; } diff --git a/pkgs/development/tools/gtk-mac-bundler/default.nix b/pkgs/development/tools/gtk-mac-bundler/default.nix new file mode 100644 index 000000000000..6a16a0372c1e --- /dev/null +++ b/pkgs/development/tools/gtk-mac-bundler/default.nix @@ -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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0dc5b8151c63..0f0085c2bca5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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;