Unverified Commit ca5752c9 authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

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

phpactor: format with nixfmt-rfc-style; simplify shell completion installation
parents ef23c7da 67dc98c2
Loading
Loading
Loading
Loading
+6 −9
Original line number Diff line number Diff line
{ 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 = {