Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 stdenv, 3 alsa-plugins, 4 writeShellScriptBin, 5}: 6let 7 arch = if stdenv.hostPlatform.system == "i686-linux" then "32" else "64"; 8in 9writeShellScriptBin "ap${arch}" '' 10 ALSA_PLUGIN_DIRS=${alsa-plugins}/lib/alsa-lib "$@" 11''