Files
2026-05-21 10:19:11 +00:00

44 lines
1018 B
Nix

{
lib,
php,
fetchFromGitHub,
makeBinaryWrapper,
versionCheckHook,
}:
php.buildComposerProject2 (finalAttrs: {
pname = "phpdocumentor";
version = "3.10.0";
src = fetchFromGitHub {
owner = "phpDocumentor";
repo = "phpDocumentor";
tag = "v${finalAttrs.version}";
hash = "sha256-sieLh5CG0ev4wMco+VG9A+2GxxalN7/FLGz+IDEgH4g=";
};
vendorHash = "sha256-hz0Fw1gR2mPGdmVi4i7yjmAJiQTfkxDUC3D2ylNpdbU=";
nativeBuildInputs = [ makeBinaryWrapper ];
postInstall = ''
wrapProgram "$out/bin/phpdoc" \
--set-default APP_CACHE_DIR /tmp \
--set-default APP_LOG_DIR /tmp/log
'';
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
meta = {
changelog = "https://github.com/phpDocumentor/phpDocumentor/releases/tag/v${finalAttrs.version}";
description = "PHP documentation generator";
homepage = "https://phpdoc.org";
license = lib.licenses.mit;
mainProgram = "phpdoc";
maintainers = [ lib.maintainers.patka ];
};
})