2023-10-21 14:52:55 +00:00
|
|
|
{ fetchFromGitHub, stdenvNoCC, lib, php }:
|
2022-12-25 18:53:06 +00:00
|
|
|
|
2023-10-21 14:52:55 +00:00
|
|
|
php.buildComposerProject (finalAttrs: {
|
2022-02-12 21:39:48 +00:00
|
|
|
pname = "grumphp";
|
2023-10-21 14:52:55 +00:00
|
|
|
version = "2.1.0";
|
2022-02-12 21:39:48 +00:00
|
|
|
|
2023-10-21 14:52:55 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "phpro";
|
|
|
|
repo = "grumphp";
|
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
hash = "sha256-RVgreCspdz+A6mdE2H4i8ajmdH8AZ9BOIw2OqLw7HfI=";
|
2022-02-12 21:39:48 +00:00
|
|
|
};
|
|
|
|
|
2023-10-21 14:52:55 +00:00
|
|
|
patches = [
|
|
|
|
./composer-json.patch
|
|
|
|
];
|
2022-02-12 21:39:48 +00:00
|
|
|
|
2023-10-21 14:52:55 +00:00
|
|
|
composerLock = stdenvNoCC.mkDerivation (finalComposerLockAttrs: {
|
|
|
|
name = "grumphp-composer-lock";
|
2022-02-12 21:39:48 +00:00
|
|
|
|
2023-10-21 14:52:55 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "phpro";
|
|
|
|
repo = "grumphp-shim";
|
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
hash = "sha256-JxgRd0p/o3ouZ4MPke8cHqvAPuepY8ax0wx4t8+2dME=";
|
|
|
|
};
|
2022-02-12 21:39:48 +00:00
|
|
|
|
2023-10-21 14:52:55 +00:00
|
|
|
patches = [
|
|
|
|
./composer-lock.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
cp phar.composer.lock $out
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
|
|
|
|
vendorHash = "sha256-yefamPAzIabDCzZ9ghKq9iPH7AoCdgCCQ8PKrUN9ifQ=";
|
|
|
|
|
|
|
|
meta = {
|
2023-02-08 17:34:41 +00:00
|
|
|
changelog = "https://github.com/phpro/grumphp/releases/tag/v${finalAttrs.version}";
|
2022-02-12 21:39:48 +00:00
|
|
|
description = "A PHP code-quality tool";
|
|
|
|
homepage = "https://github.com/phpro/grumphp";
|
2023-10-21 14:52:55 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = lib.teams.php.members;
|
2022-02-12 21:39:48 +00:00
|
|
|
};
|
2023-02-08 17:34:41 +00:00
|
|
|
})
|