summary refs log tree commit diff
path: root/pkgs/development/libraries/libsamplerate
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-07-23 11:45:44 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-07-23 11:45:44 +0200
commiteb6c0826c539ba20db94b1f088323729c42be6c1 (patch)
treed4d1322d35a6ce7466971ee117a74e9c0c7f153b /pkgs/development/libraries/libsamplerate
parentb52da47cf1b8c7c0abfbeae28ff5b3c37cc49da2 (diff)
downloadnixlib-eb6c0826c539ba20db94b1f088323729c42be6c1.tar
nixlib-eb6c0826c539ba20db94b1f088323729c42be6c1.tar.gz
nixlib-eb6c0826c539ba20db94b1f088323729c42be6c1.tar.bz2
nixlib-eb6c0826c539ba20db94b1f088323729c42be6c1.tar.lz
nixlib-eb6c0826c539ba20db94b1f088323729c42be6c1.tar.xz
nixlib-eb6c0826c539ba20db94b1f088323729c42be6c1.tar.zst
nixlib-eb6c0826c539ba20db94b1f088323729c42be6c1.zip
libsamplerate: Use default gcc
Diffstat (limited to 'pkgs/development/libraries/libsamplerate')
-rw-r--r--pkgs/development/libraries/libsamplerate/default.nix12
1 files changed, 8 insertions, 4 deletions
diff --git a/pkgs/development/libraries/libsamplerate/default.nix b/pkgs/development/libraries/libsamplerate/default.nix
index 708d89893040..183caefff852 100644
--- a/pkgs/development/libraries/libsamplerate/default.nix
+++ b/pkgs/development/libraries/libsamplerate/default.nix
@@ -15,10 +15,14 @@ stdenv.mkDerivation rec {
   #--disable-fftw          disable usage of FFTW
   #--disable-cpu-clip      disable tricky cpu specific clipper
 
-  # 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";
+  postConfigure = stdenv.lib.optionalString stdenv.isDarwin
+    ''
+      # need headers from the Carbon.framework in /System/Library/Frameworks to
+      # compile this on darwin -- not sure how to handle
+      NIX_CFLAGS_COMPILE+=" -I$xcodePath/System/Library/Frameworks/Carbon.framework/Versions/A/Headers"
+
+      substituteInPlace examples/Makefile --replace "-fpascal-strings" ""
+    '';
 
   meta = with stdenv.lib; {
     description = "Sample Rate Converter for audio";