From 5bdef060bafbc232ff58c1d114a64866e76ab6b7 Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Thu, 10 Nov 2022 07:37:59 +0000 Subject: [PATCH] grc: use installShellFiles --- pkgs/tools/misc/grc/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/misc/grc/default.nix b/pkgs/tools/misc/grc/default.nix index 7692c49fa696..5ba9ffb86f9f 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 '';