diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-07-23 11:00:41 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-07-23 11:00:41 +0200 |
commit | 922af7f1588e78041ef7102f0c505a6a055a7b04 (patch) | |
tree | 6e84fbe1003c8d77c3efc9a471a85debd0c1e56f /pkgs/development/libraries/libsndfile | |
parent | a1a381150636387d55143213f1b4c0d53d14be4d (diff) | |
download | nixlib-922af7f1588e78041ef7102f0c505a6a055a7b04.tar nixlib-922af7f1588e78041ef7102f0c505a6a055a7b04.tar.gz nixlib-922af7f1588e78041ef7102f0c505a6a055a7b04.tar.bz2 nixlib-922af7f1588e78041ef7102f0c505a6a055a7b04.tar.lz nixlib-922af7f1588e78041ef7102f0c505a6a055a7b04.tar.xz nixlib-922af7f1588e78041ef7102f0c505a6a055a7b04.tar.zst nixlib-922af7f1588e78041ef7102f0c505a6a055a7b04.zip |
libsndfile: Fix build on Darwin
Fixes #3347.
Diffstat (limited to 'pkgs/development/libraries/libsndfile')
-rw-r--r-- | pkgs/development/libraries/libsndfile/default.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/development/libraries/libsndfile/default.nix b/pkgs/development/libraries/libsndfile/default.nix index 8b0eeeb8e572..f97bd040a544 100644 --- a/pkgs/development/libraries/libsndfile/default.nix +++ b/pkgs/development/libraries/libsndfile/default.nix @@ -12,8 +12,13 @@ stdenv.mkDerivation rec { # need headers from the Carbon.framework in /System/Library/Frameworks to # compile this on darwin -- not sure how to handle - NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin - "-I/System/Library/Frameworks/Carbon.framework/Versions/A/Headers"; + preConfigure = stdenv.lib.optionalString stdenv.isDarwin + '' + NIX_CFLAGS_COMPILE+=" -I$xcodePath/System/Library/Frameworks/Carbon.framework/Versions/A/Headers" + ''; + + # Needed on Darwin. + NIX_CFLAGS_LINK = "-logg -lvorbis"; meta = with stdenv.lib; { description = "A C library for reading and writing files containing sampled sound"; |