2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, alsaLib, fixDarwinDylibNames }:
|
2018-06-17 22:50:47 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "sndio";
|
2021-05-12 19:56:23 +02:00
|
|
|
version = "1.8.0";
|
2018-06-17 22:50:47 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.sndio.org/sndio-${version}.tar.gz";
|
2021-05-12 19:56:23 +02:00
|
|
|
sha256 = "027hlqji0h2cm96rb8qvkdmwxl56l59bgn828nvmwak2c2i5k703";
|
2018-06-17 22:50:47 +02:00
|
|
|
};
|
|
|
|
|
2021-05-12 19:56:23 +02:00
|
|
|
nativeBuildInputs = lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
|
|
|
|
buildInputs = lib.optional stdenv.hostPlatform.isLinux alsaLib;
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-06-17 22:50:47 +02:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|