phpactor: fix build

This fixes the generation of bash completion by patching the shebang of
the phpactor script before the generation is excuted.
This commit is contained in:
Matthias Devlamynck 2024-07-10 11:58:02 +02:00
parent 66f66bba71
commit fb2e1920b2

View File

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