Skip to content

Commit

Permalink
asak: add man pages and shell completions (NixOS#367372)
Browse files Browse the repository at this point in the history
  • Loading branch information
donovanglover authored Dec 26, 2024
2 parents fa3448d + 525e4d6 commit 1557114
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions pkgs/by-name/as/asak/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
fetchFromGitHub,
rustPlatform,
pkg-config,
installShellFiles,
alsa-lib,
libjack2,
}:
Expand All @@ -14,24 +15,33 @@ rustPlatform.buildRustPackage rec {
src = fetchFromGitHub {
owner = "chaosprint";
repo = "asak";
rev = "v${version}";
tag = "v${version}";
hash = "sha256-Kq1WdVcTRdz6vJxUDd0bqb2bfrNGCl611upwYploR7w=";
};

cargoHash = "sha256-SS4BDhORiTV/HZhL3F9zwF8oBu/VFVYhF5Jzp2j0QFI=";

nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [
pkg-config
installShellFiles
];

buildInputs = [
alsa-lib
libjack2
];

# There is no tests
doCheck = false;
postInstall = ''
installManPage target/man/asak.1
installShellCompletion --cmd asak \
--bash target/completions/asak.bash \
--fish target/completions/asak.fish \
--zsh target/completions/_asak
'';

meta = {
description = "A cross-platform audio recording/playback CLI tool with TUI, written in Rust";
description = "Cross-platform audio recording/playback CLI tool with TUI, written in Rust";
homepage = "https://github.com/chaosprint/asak";
changelog = "https://github.com/chaosprint/asak/releases/tag/v${version}";
license = lib.licenses.mit;
Expand Down

0 comments on commit 1557114

Please sign in to comment.