asak: install shell completions

This commit is contained in:
Donovan Glover
2024-12-22 08:09:49 -05:00
parent 224730a6a6
commit 3398adcd16
+12 -1
View File
@@ -3,6 +3,7 @@
fetchFromGitHub,
rustPlatform,
pkg-config,
installShellFiles,
alsa-lib,
libjack2,
}:
@@ -20,13 +21,23 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-SS4BDhORiTV/HZhL3F9zwF8oBu/VFVYhF5Jzp2j0QFI=";
nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [
pkg-config
installShellFiles
];
buildInputs = [
alsa-lib
libjack2
];
postInstall = ''
installShellCompletion --cmd asak \
--bash target/completions/asak.bash \
--fish target/completions/asak.fish \
--zsh target/completions/_asak
'';
meta = {
description = "Cross-platform audio recording/playback CLI tool with TUI, written in Rust";
homepage = "https://github.com/chaosprint/asak";