36 lines
884 B
Nix
36 lines
884 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
installShellFiles,
|
|
php,
|
|
}:
|
|
|
|
php.buildComposerProject2 (finalAttrs: {
|
|
pname = "phpactor";
|
|
version = "2024.11.28.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "phpactor";
|
|
repo = "phpactor";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-1n5b5qmyVSBEptRGX+G4O79Ibm+MHGNWLtOcQIRhr+A=";
|
|
};
|
|
|
|
vendorHash = "sha256-TuHZkZLklBgI56mEHRZOLRFBGjHqWe2sVAA33IyqdH4=";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postInstall = ''
|
|
installShellCompletion --cmd phpactor \
|
|
--bash <(php $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.teams.php.members;
|
|
};
|
|
})
|