Commit fb2e1920 authored by Matthias Devlamynck's avatar Matthias Devlamynck
Browse files

phpactor: fix build

This fixes the generation of bash completion by patching the shebang of
the phpactor script before the generation is excuted.
parent 66f66bba
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -19,6 +19,10 @@ php.buildComposerProject (finalAttrs: {

  nativeBuildInputs = [ installShellFiles ];

  postPatch = ''
    patchShebangs bin/phpactor
  '';

  postInstall = ''
    installShellCompletion --cmd phpactor \
      --bash <($out/bin/phpactor completion bash)