2018-06-17 21:50:47 +01:00
|
|
|
{ stdenv, fetchurl, alsaLib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "sndio";
|
2019-07-20 19:53:01 +01:00
|
|
|
version = "1.6.0";
|
2018-06-17 21:50:47 +01:00
|
|
|
enableParallelBuilding = true;
|
2019-10-26 15:00:00 +01:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isLinux [ alsaLib ];
|
2018-06-17 21:50:47 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.sndio.org/sndio-${version}.tar.gz";
|
2019-07-20 19:53:01 +01:00
|
|
|
sha256 = "1havdx3q4mipgddmd2bnygr1yh6y64567m1yqwjapkhsq550dq4r";
|
2018-06-17 21:50:47 +01:00
|
|
|
};
|
|
|
|
|
2019-10-26 15:00:00 +01:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2018-06-17 21:50:47 +01: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;
|
|
|
|
};
|
|
|
|
}
|