From 01bf973fc47209ab32f32a9b8b9e8c394c1f8990 Mon Sep 17 00:00:00 2001 From: Piotr Kwiecinski <2151333+piotrkwiecinski@users.noreply.github.com> Date: Sun, 4 Aug 2024 10:58:03 +0200 Subject: [PATCH] castor: fix build This fixes the generation of bash completion by patching the shebang of the castor script before the generation is excuted. --- pkgs/development/php-packages/castor/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/php-packages/castor/default.nix b/pkgs/development/php-packages/castor/default.nix index c191d7978cd7..cd17a7474283 100644 --- a/pkgs/development/php-packages/castor/default.nix +++ b/pkgs/development/php-packages/castor/default.nix @@ -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 = {