Unverified Commit 01bf973f authored by Piotr Kwiecinski's avatar Piotr Kwiecinski
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.
parent 1201f432
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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 = {