php.packages.grumphp: 2.1.0 -> 2.4.0

This commit is contained in:
Pol Dellaiera 2023-12-22 09:57:27 +01:00
parent 6847dc7e54
commit 5023c10cbf
No known key found for this signature in database
GPG key ID: D476DFE9C67467CA
3 changed files with 7 additions and 80 deletions

View file

@ -1,27 +0,0 @@
From 2f53794374e0d32e1f322202c6668655792f745d Mon Sep 17 00:00:00 2001
From: Pol Dellaiera <pol.dellaiera@protonmail.com>
Date: Sat, 21 Oct 2023 16:46:59 +0200
Subject: [PATCH] composer.json
---
composer.json | 5 +-
1 file changed, 4 insertion(+), 1 deletion(-)
diff --git i/composer.json w/composer.json
index 6ac54420..69b75a51 100644
--- i/composer.json
+++ w/composer.json
@@ -96,7 +96,10 @@
"bin/grumphp"
],
"config": {
- "sort-packages": true
+ "sort-packages": true,
+ "platform": {
+ "php": "8.1"
+ }
},
"extra": {
"class": "GrumPHP\\Composer\\GrumPHPPlugin"
--
2.42.0

View file

@ -1,24 +0,0 @@
From 2f53794374e0d32e1f322202c6668655792f745d Mon Sep 17 00:00:00 2001
From: Pol Dellaiera <pol.dellaiera@protonmail.com>
Date: Sat, 21 Oct 2023 16:46:59 +0200
Subject: [PATCH] composer.lock
---
phar.composer.lock | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/phar.composer.lock b/phar.composer.lock
index 96b692c3..a8cb2a87 100644
--- a/phar.composer.lock
+++ b/phar.composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "8a069c630e6ddbc4475db9a992430539",
+ "content-hash": "0474062650b24a22c63007631cf35f1e",
"packages": [
{
"name": "amphp/amp",
--
2.42.0

View file

@ -1,42 +1,20 @@
{ fetchFromGitHub, stdenvNoCC, lib, php }:
{ fetchFromGitHub
, lib
, php
}:
php.buildComposerProject (finalAttrs: {
pname = "grumphp";
version = "2.1.0";
version = "2.4.0";
src = fetchFromGitHub {
owner = "phpro";
repo = "grumphp";
rev = "v${finalAttrs.version}";
hash = "sha256-RVgreCspdz+A6mdE2H4i8ajmdH8AZ9BOIw2OqLw7HfI=";
hash = "sha256-htddnBQ6VkVlZ+d5UYu2kyzrbfACRCZRdYtdGGaZ+FE=";
};
patches = [
./composer-json.patch
];
composerLock = stdenvNoCC.mkDerivation (finalComposerLockAttrs: {
name = "grumphp-composer-lock";
src = fetchFromGitHub {
owner = "phpro";
repo = "grumphp-shim";
rev = "v${finalAttrs.version}";
hash = "sha256-JxgRd0p/o3ouZ4MPke8cHqvAPuepY8ax0wx4t8+2dME=";
};
patches = [
./composer-lock.patch
];
installPhase = ''
runHook preInstall
cp phar.composer.lock $out
runHook postInstall
'';
});
vendorHash = "sha256-yefamPAzIabDCzZ9ghKq9iPH7AoCdgCCQ8PKrUN9ifQ=";
vendorHash = "sha256-UJsWZ5dYW8sEft/i122x7bJJ33TVjEp5CU65rW/tHhk=";
meta = {
changelog = "https://github.com/phpro/grumphp/releases/tag/v${finalAttrs.version}";