summary refs log tree commit diff
path: root/pkgs/tools/misc/grc
diff options
context:
space:
mode:
authorAaron Jheng <wentworth@outlook.com>2022-11-10 07:37:59 +0000
committerAaron Jheng <wentworth@outlook.com>2022-11-10 10:43:20 +0000
commit5bdef060bafbc232ff58c1d114a64866e76ab6b7 (patch)
tree0cc26b2c0a1220be0ff9152c781fe7066b7a73ef /pkgs/tools/misc/grc
parent9bbb7fb6352c972679f3ac7d8268fd889c65233b (diff)
grc: use installShellFiles
Diffstat (limited to 'pkgs/tools/misc/grc')
-rw-r--r--pkgs/tools/misc/grc/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/tools/misc/grc/default.nix b/pkgs/tools/misc/grc/default.nix
index 7692c49fa696d..5ba9ffb86f9ff 100644
--- a/pkgs/tools/misc/grc/default.nix
+++ b/pkgs/tools/misc/grc/default.nix
@@ -1,6 +1,7 @@
 { lib
 , fetchFromGitHub
 , buildPythonApplication
+, installShellFiles
 }:
 
 buildPythonApplication rec {
@@ -22,10 +23,14 @@ buildPythonApplication rec {
     done
   '';
 
+  nativeBuildInputs = [ installShellFiles ];
+
   installPhase = ''
     runHook preInstall
+
     ./install.sh "$out" "$out"
-    install -Dm444 -t $out/share/zsh/vendor-completions _grc
+    installShellCompletion --zsh --name _grc _grc
+
     runHook postInstall
   '';