Merge pull request #7022 from spwhitt/soxr

soxr: Fix Darwin build
This commit is contained in:
Eric Seidel 2015-03-29 13:43:30 -07:00
commit 7e0bde1e7b

View File

@ -8,7 +8,11 @@ stdenv.mkDerivation rec {
sha256 = "1hmadwqfpg15vhwq9pa1sl5xslibrjpk6hpq2s9hfmx1s5l6ihfw";
};
preConfigure = ''export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:"`pwd`/build/src'';
preConfigure = if stdenv.isDarwin then ''
export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:"`pwd`/build/src
'' else ''
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:"`pwd`/build/src
'';
buildInputs = [ cmake ];