Merge pull request #334118 from piotrkwiecinski/phpactor-install-shell

phpactor: format with nixfmt-rfc-style; simplify shell completion installation
This commit is contained in:
Pol Dellaiera 2024-08-12 15:20:43 +02:00 committed by GitHub
commit ca5752c9f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,8 @@
{ lib
, fetchFromGitHub
, installShellFiles
, php
{
lib,
fetchFromGitHub,
installShellFiles,
php,
}:
php.buildComposerProject (finalAttrs: {
@ -19,13 +20,9 @@ php.buildComposerProject (finalAttrs: {
nativeBuildInputs = [ installShellFiles ];
postPatch = ''
patchShebangs bin/phpactor
'';
postInstall = ''
installShellCompletion --cmd phpactor \
--bash <($out/bin/phpactor completion bash)
--bash <(php $out/bin/phpactor completion bash)
'';
meta = {