mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
Merge pull request #20658 from matthewbauer/gimp-darwin
GIMP on Darwin (use Quartz)
This commit is contained in:
commit
4488203d0c
@ -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;
|
||||
};
|
||||
}
|
||||
|
31
pkgs/development/tools/gtk-mac-bundler/default.nix
Normal file
31
pkgs/development/tools/gtk-mac-bundler/default.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user