2018-06-17 22:50:47 +02:00
|
|
|
{ stdenv, fetchurl, alsaLib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "sndio";
|
2020-07-12 08:23:44 +02:00
|
|
|
version = "1.7.0";
|
2018-06-17 22:50:47 +02:00
|
|
|
enableParallelBuilding = true;
|
2019-10-26 16:00:00 +02:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isLinux [ alsaLib ];
|
2018-06-17 22:50:47 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.sndio.org/sndio-${version}.tar.gz";
|
2020-07-12 08:23:44 +02:00
|
|
|
sha256 = "0ljmac0lnjn61admgbcwjfcr5fwccrsblx9rj9bys8wlhz8f796x";
|
2018-06-17 22:50:47 +02:00
|
|
|
};
|
|
|
|
|
2019-10-26 16:00:00 +02:00
|
|
|
postFixup = stdenv.lib.optionalString stdenv.isDarwin ''
|
2019-11-14 04:56:45 +01:00
|
|
|
install_name_tool -id $out/lib/libsndio.7.0.dylib $out/lib/libsndio.7.0.dylib
|
2019-10-26 16:00:00 +02:00
|
|
|
for file in $out/bin/*; do
|
|
|
|
install_name_tool -change libsndio.7.0.dylib $out/lib/libsndio.dylib $file
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2018-06-17 22:50:47 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "http://www.sndio.org";
|
|
|
|
description = "Small audio and MIDI framework part of the OpenBSD project";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ chiiruno ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|