From 224730a6a62207b1575d04af2653e73d6187477a Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sun, 22 Dec 2024 08:05:22 -0500 Subject: [PATCH 1/3] asak: cleanup --- pkgs/by-name/as/asak/package.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/as/asak/package.nix b/pkgs/by-name/as/asak/package.nix index 186980d2db4cf..1bcb077d90ca7 100644 --- a/pkgs/by-name/as/asak/package.nix +++ b/pkgs/by-name/as/asak/package.nix @@ -14,7 +14,7 @@ rustPlatform.buildRustPackage rec { src = fetchFromGitHub { owner = "chaosprint"; repo = "asak"; - rev = "v${version}"; + tag = "v${version}"; hash = "sha256-Kq1WdVcTRdz6vJxUDd0bqb2bfrNGCl611upwYploR7w="; }; @@ -27,11 +27,8 @@ rustPlatform.buildRustPackage rec { libjack2 ]; - # There is no tests - doCheck = false; - 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; From 3398adcd161628517ab43bfe668d8103ec8228f1 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sun, 22 Dec 2024 08:09:49 -0500 Subject: [PATCH 2/3] asak: install shell completions --- pkgs/by-name/as/asak/package.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/as/asak/package.nix b/pkgs/by-name/as/asak/package.nix index 1bcb077d90ca7..5fe6039f39ddf 100644 --- a/pkgs/by-name/as/asak/package.nix +++ b/pkgs/by-name/as/asak/package.nix @@ -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"; From 525e4d6dc6720c77d3cd58e8da9ca6a12e93a055 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sun, 22 Dec 2024 08:11:42 -0500 Subject: [PATCH 3/3] asak: install man page --- pkgs/by-name/as/asak/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/as/asak/package.nix b/pkgs/by-name/as/asak/package.nix index 5fe6039f39ddf..fdfce87a92f9a 100644 --- a/pkgs/by-name/as/asak/package.nix +++ b/pkgs/by-name/as/asak/package.nix @@ -32,6 +32,8 @@ rustPlatform.buildRustPackage rec { ]; postInstall = '' + installManPage target/man/asak.1 + installShellCompletion --cmd asak \ --bash target/completions/asak.bash \ --fish target/completions/asak.fish \