From fb2e1920b2f0d9970c83e26319f7a1285ecbf2fe Mon Sep 17 00:00:00 2001 From: Matthias Devlamynck Date: Wed, 10 Jul 2024 11:58:02 +0200 Subject: [PATCH] phpactor: fix build This fixes the generation of bash completion by patching the shebang of the phpactor script before the generation is excuted. --- pkgs/by-name/ph/phpactor/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/ph/phpactor/package.nix b/pkgs/by-name/ph/phpactor/package.nix index 2c40203cf047..56574c10ea1f 100644 --- a/pkgs/by-name/ph/phpactor/package.nix +++ b/pkgs/by-name/ph/phpactor/package.nix @@ -19,6 +19,10 @@ php.buildComposerProject (finalAttrs: { nativeBuildInputs = [ installShellFiles ]; + postPatch = '' + patchShebangs bin/phpactor + ''; + postInstall = '' installShellCompletion --cmd phpactor \ --bash <($out/bin/phpactor completion bash)