Merge pull request #200483 from aaronjheng/grc

grc: use installShellFiles
This commit is contained in:
Anderson Torres 2022-11-10 12:25:25 -03:00 committed by GitHub
commit d869f6846f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
'';