grc: use installShellFiles
This commit is contained in:
parent
9bbb7fb635
commit
5bdef060ba
1 changed files with 6 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
{ lib
|
{ lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, buildPythonApplication
|
, buildPythonApplication
|
||||||
|
, installShellFiles
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
|
@ -22,10 +23,14 @@ buildPythonApplication rec {
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
||||||
./install.sh "$out" "$out"
|
./install.sh "$out" "$out"
|
||||||
install -Dm444 -t $out/share/zsh/vendor-completions _grc
|
installShellCompletion --zsh --name _grc _grc
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue