1 { lib, stdenv, fetchurl, alsa-lib, fixDarwinDylibNames }:
3 stdenv.mkDerivation rec {
8 url = "https://www.sndio.org/sndio-${version}.tar.gz";
9 sha256 = "sha256-8wgm/JwH42nTkk1fzt9qClPA30rh9atQ/pzygFQPaZo=";
12 nativeBuildInputs = lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
13 buildInputs = lib.optional stdenv.hostPlatform.isLinux alsa-lib;
14 configurePlatforms = [];
17 install -Dm644 contrib/sndiod.service $out/lib/systemd/system/sndiod.service
20 enableParallelBuilding = true;
23 homepage = "https://www.sndio.org";
24 description = "Small audio and MIDI framework part of the OpenBSD project";
25 license = licenses.isc;
26 maintainers = with maintainers; [ Madouura ];
27 platforms = platforms.all;