diff options
author | Ludovic Courtès <ludo@gnu.org> | 2012-10-18 11:12:35 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2012-10-18 11:12:35 +0200 |
commit | fa7f30bf5e0a9f9518cb5db699fae4cda921b4da (patch) | |
tree | bc6cd8b7a7506b95fe960e355280529fda10d5ee /pkgs | |
parent | b9982a7d11c347c6b93cb610eb542156d812c0b1 (diff) | |
download | nixlib-fa7f30bf5e0a9f9518cb5db699fae4cda921b4da.tar nixlib-fa7f30bf5e0a9f9518cb5db699fae4cda921b4da.tar.gz nixlib-fa7f30bf5e0a9f9518cb5db699fae4cda921b4da.tar.bz2 nixlib-fa7f30bf5e0a9f9518cb5db699fae4cda921b4da.tar.lz nixlib-fa7f30bf5e0a9f9518cb5db699fae4cda921b4da.tar.xz nixlib-fa7f30bf5e0a9f9518cb5db699fae4cda921b4da.tar.zst nixlib-fa7f30bf5e0a9f9518cb5db699fae4cda921b4da.zip |
glib: disable the NeXTstep on Darwin
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/libraries/glib/2.34.x.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/development/libraries/glib/2.34.x.nix b/pkgs/development/libraries/glib/2.34.x.nix index 904647721dd7..7fb61ac20e23 100644 --- a/pkgs/development/libraries/glib/2.34.x.nix +++ b/pkgs/development/libraries/glib/2.34.x.nix @@ -11,7 +11,7 @@ # Reminder: add 'sed -e 's@python2\.[0-9]@python@' -i # $out/bin/gtester-report' to postInstall if this is solved -stdenv.mkDerivation rec { +stdenv.mkDerivation (rec { name = "glib-2.34.0"; src = fetchurl { @@ -52,3 +52,13 @@ stdenv.mkDerivation rec { platforms = stdenv.lib.platforms.linux; }; } + +// + +(stdenv.lib.optionalAttrs stdenv.isDarwin { + # XXX: Disable the NeXTstep back-end because stdenv.gcc doesn't support + # Objective-C. + postConfigure = + '' sed -i configure -e's/glib_have_cocoa=yes/glib_have_cocoa=no/g' + ''; +})) |