deluge: fix build on darwin (close #930)

This commit is contained in:
Jason \"Don\" O'Conal 2013-09-07 08:09:34 +10:00 committed by Vladimír Čunát
parent 9767a725cc
commit 2a73189a9c
2 changed files with 8 additions and 1 deletions

View File

@ -11,4 +11,6 @@ stdenv.mkDerivation {
buildInputs = [ pkgconfig gtk python gettext ];
propagatedBuildInputs = [ libxml2 ];
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
}

View File

@ -4919,7 +4919,12 @@ let
libtommath = callPackage ../development/libraries/libtommath { };
libtorrentRasterbar = callPackage ../development/libraries/libtorrent-rasterbar { };
libtorrentRasterbar = callPackage ../development/libraries/libtorrent-rasterbar {
# fix "unrecognized option -arch" error
stdenv = if stdenv.isDarwin
then clangStdenv
else stdenv;
};
libtunepimp = callPackage ../development/libraries/libtunepimp { };