Merge pull request #72033 from marsam/fix-sndio-darwin
sndio: fix build on darwin
This commit is contained in:
commit
846da8ba7d
|
@ -4,13 +4,19 @@ stdenv.mkDerivation rec {
|
||||||
pname = "sndio";
|
pname = "sndio";
|
||||||
version = "1.6.0";
|
version = "1.6.0";
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
buildInputs = [ alsaLib ];
|
buildInputs = stdenv.lib.optionals stdenv.isLinux [ alsaLib ];
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://www.sndio.org/sndio-${version}.tar.gz";
|
url = "http://www.sndio.org/sndio-${version}.tar.gz";
|
||||||
sha256 = "1havdx3q4mipgddmd2bnygr1yh6y64567m1yqwjapkhsq550dq4r";
|
sha256 = "1havdx3q4mipgddmd2bnygr1yh6y64567m1yqwjapkhsq550dq4r";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postFixup = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
|
for file in $out/bin/*; do
|
||||||
|
install_name_tool -change libsndio.7.0.dylib $out/lib/libsndio.dylib $file
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "http://www.sndio.org";
|
homepage = "http://www.sndio.org";
|
||||||
description = "Small audio and MIDI framework part of the OpenBSD project";
|
description = "Small audio and MIDI framework part of the OpenBSD project";
|
||||||
|
|
Loading…
Reference in a new issue