From 8497ef1ed270674d6126039ffdc834aa61b82083 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Tue, 22 Nov 2016 02:14:00 -0600 Subject: [PATCH] gimp: add darwin support --- pkgs/applications/graphics/gimp/2.8.nix | 8 +++++--- pkgs/top-level/all-packages.nix | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) 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/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 69192cd6d3a9..3610b965d180 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13352,6 +13352,7 @@ in inherit (gnome2) libart_lgpl; webkit = null; lcms = lcms2; + inherit (darwin.apple_sdk.frameworks) AppKit Cocoa; }; gimp = gimp_2_8;