nixpkgs/pkgs/by-name/al/alsa-plugins-wrapper/package.nix
2023-11-14 20:20:57 -03:00

11 lines
223 B
Nix

{ stdenv
, alsa-plugins
, writeShellScriptBin
}:
let
arch = if stdenv.hostPlatform.system == "i686-linux" then "32" else "64";
in
writeShellScriptBin "ap${arch}" ''
ALSA_PLUGIN_DIRS=${alsa-plugins}/lib/alsa-lib "$@"
''