Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, alsa-lib, fixDarwinDylibNames }: 2 3stdenv.mkDerivation rec { 4 pname = "sndio"; 5 version = "1.9.0"; 6 7 src = fetchurl { 8 url = "https://www.sndio.org/sndio-${version}.tar.gz"; 9 sha256 = "sha256-8wgm/JwH42nTkk1fzt9qClPA30rh9atQ/pzygFQPaZo="; 10 }; 11 12 nativeBuildInputs = lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames; 13 buildInputs = lib.optional stdenv.hostPlatform.isLinux alsa-lib; 14 configurePlatforms = []; 15 16 postInstall = '' 17 install -Dm644 contrib/sndiod.service $out/lib/systemd/system/sndiod.service 18 ''; 19 20 enableParallelBuilding = true; 21 22 meta = with lib; { 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; 28 }; 29}