1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 12:11:28 +00:00

grc: use installShellFiles

This commit is contained in:
Aaron Jheng 2022-11-10 07:37:59 +00:00
parent 9bbb7fb635
commit 5bdef060ba
No known key found for this signature in database
GPG key ID: F6A547A869D050A3

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