pretty-php: init at 0.4.92 (#389375)

This commit is contained in:
Pol Dellaiera
2025-03-13 10:04:16 +01:00
committed by GitHub
+34
View File
@@ -0,0 +1,34 @@
{
lib,
php,
fetchFromGitHub,
testers,
}:
php.buildComposerProject2 (finalAttrs: {
pname = "pretty-php";
version = "0.4.92";
src = fetchFromGitHub {
owner = "lkrms";
repo = "pretty-php";
tag = "v${finalAttrs.version}";
hash = "sha256-rKL6ViBEJf+GGxWood0DXVF8U7wuz22Z26SEdgDAJww=";
};
vendorHash = "sha256-V1oqMnDJgWujQXJJqyc2cvEvBbFv+KdXjXfb+sxs8/8=";
passthru = {
tests.version = testers.testVersion {
package = finalAttrs.finalPackage;
command = "HOME=$TMPDIR pretty-php --version";
};
};
meta = {
description = "The opinionated PHP code formatter";
homepage = "https://github.com/lkrms/pretty-php";
license = lib.licenses.mit;
mainProgram = "pretty-php";
maintainers = with lib.maintainers; [ piotrkwiecinski ];
};
})