phpactor: simplify shell completion installation

This commit is contained in:
Piotr Kwiecinski 2024-08-12 13:36:04 +02:00
parent e2e2a2c9bc
commit b018ad68c0
No known key found for this signature in database
GPG Key ID: EC0DE1CB9D5258B4

View File

@ -19,13 +19,9 @@ php.buildComposerProject (finalAttrs: {
nativeBuildInputs = [ installShellFiles ];
postPatch = ''
patchShebangs bin/phpactor
'';
postInstall = ''
installShellCompletion --cmd phpactor \
--bash <($out/bin/phpactor completion bash)
--bash <(php $out/bin/phpactor completion bash)
'';
meta = {