git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #17962 from vbgl/inkscape-darwin

inkscape: fix on darwin (fixes #15768)

commit355cc312294a6962b777f410673acd1824ddcfc2 authorGraham Christensen <graham@grahamc.com> dateThu 25 Aug 2016, 18:14 (10 years ago) parent78305bc42701ee
2 files changed+15−6
pkgs/applications/graphics/inkscape/default.nix+9−3 pkgs/development/libraries/cairomm/default.nix+6−3
pkgs/applications/graphics/inkscape/default.nix+9−3
@@ -1,8 +1,8 @@
1−{ stdenv, fetchurl, pkgconfig, perl, perlXMLParser, gtk, libXft
1+{ stdenv, fetchurl, fetchpatch, pkgconfig, perl, perlXMLParser, gtk, libXft
22, libpng, zlib, popt, boehmgc, libxml2, libxslt, glib, gtkmm
33, glibmm, libsigcxx, lcms, boost, gettext, makeWrapper, intltool
44, gsl, python, numpy, pyxml, lxml, poppler, imagemagick, libwpg, librevenge
5−, libvisio, libcdr, libexif, unzip
5+, libvisio, libcdr, libexif, unzip, automake114x, autoconf
66, boxMakerPlugin ? false # boxmaker plugin
77}:
88
@@ -14,6 +14,11 @@ boxmaker = fetchurl {
1414 sha256 = "5c5697f43dc3a95468f61f479cb50b7e2b93379a1729abf19e4040ac9f43a1a8";
1515};
1616
17+stdcxx-patch = fetchpatch {
18+ url = http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/diff/14542?context=3;
19+ sha256 = "15h831lsh61ichgdygkdkbdm1dlb9mhprldq27hkx2472lcnyx6y";
20+};
21+
1722in
1823
1924stdenv.mkDerivation rec {
@@ -28,6 +33,7 @@ stdenv.mkDerivation rec {
2833 patches = [ ./deprecated-scopedptr.patch ];
2934
3035 postPatch = ''
36+ patch -i ${stdcxx-patch} -p 0
3137 patchShebangs share/extensions
3238 ''
3339 # Clang gets misdetected, so hardcode the right answer
@@ -46,7 +52,7 @@ stdenv.mkDerivation rec {
4652 pkgconfig perl perlXMLParser gtk libXft libpng zlib popt boehmgc
4753 libxml2 libxslt glib gtkmm glibmm libsigcxx lcms boost gettext
4854 makeWrapper intltool gsl poppler imagemagick libwpg librevenge
49− libvisio libcdr libexif
55+ libvisio libcdr libexif automake114x autoconf
5056 ] ++ stdenv.lib.optional boxMakerPlugin unzip;
5157
5258 enableParallelBuilding = true;
pkgs/development/libraries/cairomm/default.nix+6−3
@@ -1,4 +1,4 @@
1−{ fetchurl, stdenv, pkgconfig, cairo, xlibsWrapper, fontconfig, freetype, libsigcxx }:
1+{ fetchurl, stdenv, pkgconfig, darwin, cairo, xlibsWrapper, fontconfig, freetype, libsigcxx }:
22let
33 ver_maj = "1.12";
44 ver_min = "0";
@@ -13,7 +13,10 @@ stdenv.mkDerivation rec {
1313
1414 nativeBuildInputs = [ pkgconfig ];
1515 propagatedBuildInputs = [ cairo libsigcxx ];
16− buildInputs = [ fontconfig freetype ];
16+ buildInputs = [ fontconfig freetype ]
17+ ++ stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
18+ ApplicationServices
19+ ]);
1720
1821 doCheck = true;
1922
@@ -35,6 +38,6 @@ stdenv.mkDerivation rec {
3538 homepage = http://cairographics.org/;
3639
3740 license = with licenses; [ lgpl2Plus mpl10 ];
38− platforms = platforms.linux;
41+ platforms = platforms.unix;
3942 };
4043}