Merge pull request #92978 from S-NA/updates/sndio-1.7.0
sndio: 1.6.0 -> 1.7.0
This commit is contained in:
commit
45a4fa7dba
1 changed files with 5 additions and 11 deletions
|
@ -1,23 +1,17 @@
|
|||
{ stdenv, fetchurl, alsaLib }:
|
||||
{ stdenv, fetchurl, alsaLib, fixDarwinDylibNames }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "sndio";
|
||||
version = "1.6.0";
|
||||
version = "1.7.0";
|
||||
enableParallelBuilding = true;
|
||||
buildInputs = stdenv.lib.optionals stdenv.isLinux [ alsaLib ];
|
||||
buildInputs = stdenv.lib.optionals stdenv.isLinux [ alsaLib ]
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ fixDarwinDylibNames ];
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.sndio.org/sndio-${version}.tar.gz";
|
||||
sha256 = "1havdx3q4mipgddmd2bnygr1yh6y64567m1yqwjapkhsq550dq4r";
|
||||
sha256 = "0ljmac0lnjn61admgbcwjfcr5fwccrsblx9rj9bys8wlhz8f796x";
|
||||
};
|
||||
|
||||
postFixup = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
install_name_tool -id $out/lib/libsndio.7.0.dylib $out/lib/libsndio.7.0.dylib
|
||||
for file in $out/bin/*; do
|
||||
install_name_tool -change libsndio.7.0.dylib $out/lib/libsndio.dylib $file
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "http://www.sndio.org";
|
||||
description = "Small audio and MIDI framework part of the OpenBSD project";
|
||||
|
|
Loading…
Reference in a new issue