Skip to content

Commit 874a6d7

Browse files
committed
phpPackages.psysh: update hash, add installCheck
1 parent 47f6b52 commit 874a6d7

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

pkgs/development/php-packages/psysh/default.nix

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
fetchurl,
44
lib,
55
php,
6+
versionCheckHook,
67
}:
78

89
let
@@ -26,7 +27,6 @@ php.buildComposerProject2 (finalAttrs: {
2627
inherit
2728
pname
2829
version
29-
composerLock
3030
src
3131
;
3232

@@ -45,9 +45,15 @@ php.buildComposerProject2 (finalAttrs: {
4545
composer update --lock --no-install
4646
'';
4747

48-
vendorHash = "sha256-ODUfR7PsM1YKkEIl4KEAHcY2irqlqMGlpvmEYV1M2jk=";
48+
vendorHash = "sha256-8l5bQ+VnLOtPUspMN1f+iXo7LldPTuYqyrAeW2aVoH8=";
4949
};
5050

51+
nativeInstallCheckInputs = [
52+
versionCheckHook
53+
];
54+
versionCheckProgramArg = [ "--version" ];
55+
doInstallCheck = true;
56+
5157
meta = {
5258
changelog = "https://github.com/bobthecow/psysh/releases/tag/v${finalAttrs.version}";
5359
description = "PsySH is a runtime developer console, interactive debugger and REPL for PHP";

0 commit comments

Comments
 (0)