2020-09-05 23:21:05 +00:00
|
|
|
{ stdenv, fetchurl, alsaLib, fixDarwinDylibNames }:
|
2018-06-17 20:50:47 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "sndio";
|
2020-07-12 06:23:44 +00:00
|
|
|
version = "1.7.0";
|
2018-06-17 20:50:47 +00:00
|
|
|
enableParallelBuilding = true;
|
2020-09-05 23:21:05 +00:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isLinux [ alsaLib ]
|
|
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ fixDarwinDylibNames ];
|
2018-06-17 20:50:47 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.sndio.org/sndio-${version}.tar.gz";
|
2020-07-12 06:23:44 +00:00
|
|
|
sha256 = "0ljmac0lnjn61admgbcwjfcr5fwccrsblx9rj9bys8wlhz8f796x";
|
2018-06-17 20:50:47 +00: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;
|
|
|
|
};
|
|
|
|
}
|