diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-04-14 14:33:24 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-04-14 14:33:24 +0200 |
commit | 8f4f24b31abcf62e6688614b7986534d41de0b00 (patch) | |
tree | 3abbb3c78f206a8c8d12fd304cf3ffb5f94db4a6 /pkgs/by-name/ts/tskm/package.nix | |
parent | pkgs/default.nix: No longer required `sysLib` as input (diff) | |
download | nixos-config-8f4f24b31abcf62e6688614b7986534d41de0b00.zip |
pkgs/tskm: Add completions for dynamic values
This brings `tskm` again on the same level `neorg` was with regard to completions.
Diffstat (limited to 'pkgs/by-name/ts/tskm/package.nix')
-rw-r--r-- | pkgs/by-name/ts/tskm/package.nix | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/pkgs/by-name/ts/tskm/package.nix b/pkgs/by-name/ts/tskm/package.nix index 3d320772..71ef7ed6 100644 --- a/pkgs/by-name/ts/tskm/package.nix +++ b/pkgs/by-name/ts/tskm/package.nix @@ -19,10 +19,6 @@ rustPlatform.buildRustPackage (finalAttrs: { lockFile = ./Cargo.lock; }; - env = { - SHELL_COMPLETION_DIR = "./shell"; - }; - buildInputs = [ taskwarrior3 git @@ -38,9 +34,9 @@ rustPlatform.buildRustPackage (finalAttrs: { postInstall = '' installShellCompletion --cmd tskm \ - --bash ./shell/tskm.bash \ - --fish ./shell/tskm.fish \ - --zsh ./shell/_tskm + --bash <(COMPLETE=bash $out/bin/tskm) \ + --fish <(COMPLETE=fish $out/bin/tskm) \ + --zsh <(COMPLETE=zsh $out/bin/tskm) # NOTE: We cannot clear the path, because we need access to the $EDITOR. <2025-04-04> wrapProgram $out/bin/tskm \ |