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
+6 -9
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 = {