mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-26 06:44:06 +00:00
7690776867
Shell completions are only provided for bash. This means they will also work for zsh, but not for fish
36 lines
905 B
Nix
36 lines
905 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
, php
|
|
}:
|
|
|
|
php.buildComposerProject (finalAttrs: {
|
|
pname = "phpactor";
|
|
version = "2023.12.03.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "phpactor";
|
|
repo = "phpactor";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-zLSGzaUzroWkvFNCj3uA9KdZ3K/EIQOZ7HzV6Ms5/BE=";
|
|
};
|
|
|
|
vendorHash = "sha256-0jvWbQubPXDhsXqEp8q5R0Y7rQX3UiccGDF3HDBeh7o=";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postInstall = ''
|
|
installShellCompletion --cmd phpactor \
|
|
--bash <($out/bin/phpactor completion bash)
|
|
'';
|
|
|
|
meta = {
|
|
changelog = "https://github.com/phpactor/phpactor/releases/tag/${finalAttrs.version}";
|
|
description = "Mainly a PHP Language Server";
|
|
homepage = "https://github.com/phpactor/phpactor";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "phpactor";
|
|
maintainers = [ lib.maintainers.ryantm ] ++ lib.teams.php.members;
|
|
};
|
|
})
|