From 47bfa0e5ece304bef0c9f8fc6e6eefde2e726ca3 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Thu, 2 May 2024 22:17:24 +0200 Subject: [PATCH] psysh: fix 0.12.3 using a `preBuild` hook This is based on https://github.com/bobthecow/psysh/blob/052322d0480fd975335ac08f6bd8bf7eb0500940/Makefile#L80 --- pkgs/development/php-packages/psysh/default.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pkgs/development/php-packages/psysh/default.nix b/pkgs/development/php-packages/psysh/default.nix index 63618d5c25742..b3fc7c209b87f 100644 --- a/pkgs/development/php-packages/psysh/default.nix +++ b/pkgs/development/php-packages/psysh/default.nix @@ -16,7 +16,18 @@ php.buildComposerProject (finalAttrs: { url = "https://github.com/bobthecow/psysh/releases/download/v${finalAttrs.version}/composer-v${finalAttrs.version}.lock"; hash = "sha256-ur6mzla3uXeFL6aEHAPdpxGdvcgzOgTLW/CKPbNqeCg="; }; - vendorHash = ""; + + composerRepository = { + preBuild = '' + setComposeRootVersion + composer config platform.php 7.4 + composer require --no-update symfony/polyfill-iconv symfony/polyfill-mbstring + composer require --no-update --dev roave/security-advisories:dev-latest + composer update --no-interaction --no-progress --prefer-stable --no-dev --classmap-authoritative --prefer-dist --lock + ''; + }; + + vendorHash = "sha256-vlEbehxy6xi2qLKG32fV0OJVSphWjqKUVHbWOhoWjoI="; meta = { changelog = "https://github.com/bobthecow/psysh/releases/tag/v${finalAttrs.version}";