Skip to content

Commit 01bf973

Browse files
castor: fix build
This fixes the generation of bash completion by patching the shebang of the castor script before the generation is excuted.
1 parent 1201f43 commit 01bf973

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkgs/development/php-packages/castor/default.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ php.buildComposerProject (finalAttrs: {
3535
# install shell completions
3636
postInstall = ''
3737
installShellCompletion --cmd castor \
38-
--bash <($out/bin/castor completion bash) \
39-
--fish <($out/bin/castor completion fish) \
40-
--zsh <($out/bin/castor completion zsh)
38+
--bash <(php $out/bin/castor completion bash) \
39+
--fish <(php $out/bin/castor completion fish) \
40+
--zsh <(php $out/bin/castor completion zsh)
4141
'';
4242

4343
passthru = {

0 commit comments

Comments
 (0)