castor: fix build

This fixes the generation of bash completion by patching the shebang of
the castor script before the generation is excuted.
This commit is contained in:
Piotr Kwiecinski 2024-08-04 10:58:03 +02:00
parent 1201f43224
commit 01bf973fc4
No known key found for this signature in database
GPG Key ID: EC0DE1CB9D5258B4

View File

@ -35,9 +35,9 @@ php.buildComposerProject (finalAttrs: {
# install shell completions
postInstall = ''
installShellCompletion --cmd castor \
--bash <($out/bin/castor completion bash) \
--fish <($out/bin/castor completion fish) \
--zsh <($out/bin/castor completion zsh)
--bash <(php $out/bin/castor completion bash) \
--fish <(php $out/bin/castor completion fish) \
--zsh <(php $out/bin/castor completion zsh)
'';
passthru = {