nixpkgs/pkgs/by-name/ph/phpactor/package.nix
2024-08-20 20:29:34 +02:00

37 lines
884 B
Nix

{
lib,
fetchFromGitHub,
installShellFiles,
php,
}:
php.buildComposerProject2 (finalAttrs: {
pname = "phpactor";
version = "2024.06.30.0";
src = fetchFromGitHub {
owner = "phpactor";
repo = "phpactor";
rev = finalAttrs.version;
hash = "sha256-QcKkkgpWWypapQPawK1hu+6tkF9c5ICPeEPWqCwrUBM=";
};
vendorHash = "sha256-Q72EeGeVqjaOZeW8VAB59OY0E/wvL8Ljq/9XC4iK/rg=";
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;
};
})