Skip to content

Commit c0999f4

Browse files
committed
phpdocumentor: 3.6.0 -> 3.7.1
1 parent 64b2466 commit c0999f4

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

pkgs/by-name/ph/phpdocumentor/package.nix

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,21 @@
33
php,
44
fetchFromGitHub,
55
makeBinaryWrapper,
6+
versionCheckHook,
67
}:
78

89
php.buildComposerProject2 (finalAttrs: {
910
pname = "phpdocumentor";
10-
version = "3.6.0";
11+
version = "3.7.1";
1112

1213
src = fetchFromGitHub {
1314
owner = "phpDocumentor";
1415
repo = "phpDocumentor";
1516
tag = "v${finalAttrs.version}";
16-
hash = "sha256-8TQlqXhZ3rHmOAuxsBYa+7JD+SxMQY0NZgCyElStFag=";
17+
hash = "sha256-ylwv+tW5Lyx1rooUy7wjinsutGpbLvIvXuLDGWLv24g=";
1718
};
1819

19-
vendorHash = "sha256-LESUhPjpj1KkFkB+JEOCGU9c6LuDQJB5Dtc/q5Bt3Og=";
20-
21-
# Needed because of the unbound version constraint on phpdocumentor/json-path
22-
composerStrictValidation = false;
20+
vendorHash = "sha256-oPhe4yfOdsguXS3dF62mTr0+J1pfphsVJkMKR++c8go=";
2321

2422
nativeBuildInputs = [ makeBinaryWrapper ];
2523

@@ -29,6 +27,13 @@ php.buildComposerProject2 (finalAttrs: {
2927
--set-default APP_LOG_DIR /tmp/log
3028
'';
3129

30+
nativeInstallCheckInputs = [
31+
versionCheckHook
32+
];
33+
versionCheckProgram = "${placeholder "out"}/bin/${finalAttrs.meta.mainProgram}";
34+
versionCheckProgramArg = [ "--version" ];
35+
doInstallCheck = true;
36+
3237
meta = {
3338
changelog = "https://github.com/phpDocumentor/phpDocumentor/releases/tag/v${finalAttrs.version}";
3439
description = "PHP documentation generator";

0 commit comments

Comments
 (0)