php.packages.grumphp: init at 1.8.1
This commit is contained in:
parent
4c419ef1c6
commit
ff2d50e1dd
2 changed files with 33 additions and 0 deletions
31
pkgs/development/php-packages/grumphp/default.nix
Normal file
31
pkgs/development/php-packages/grumphp/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
{ mkDerivation, fetchurl, makeWrapper, lib, php }:
|
||||||
|
mkDerivation rec {
|
||||||
|
pname = "grumphp";
|
||||||
|
version = "1.8.1";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/phpro/${pname}/releases/download/v${version}/${pname}.phar";
|
||||||
|
sha256 = "sha256-3XPMyH2F3ZfRr8DmvlBY3Z6uolhaRraQxwKIskIwPq8=";
|
||||||
|
};
|
||||||
|
|
||||||
|
dontUnpack = true;
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
mkdir -p $out/bin
|
||||||
|
install -D $src $out/libexec/${pname}/grumphp.phar
|
||||||
|
makeWrapper ${php}/bin/php $out/bin/grumphp \
|
||||||
|
--add-flags "$out/libexec/${pname}/grumphp.phar"
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
broken = versionOlder php.version "8.0";
|
||||||
|
description = "A PHP code-quality tool";
|
||||||
|
homepage = "https://github.com/phpro/grumphp";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = teams.php.members;
|
||||||
|
};
|
||||||
|
}
|
|
@ -140,6 +140,8 @@ lib.makeScope pkgs.newScope (self: with self; {
|
||||||
|
|
||||||
deployer = callPackage ../development/php-packages/deployer { };
|
deployer = callPackage ../development/php-packages/deployer { };
|
||||||
|
|
||||||
|
grumphp = callPackage ../development/php-packages/grumphp { };
|
||||||
|
|
||||||
phing = callPackage ../development/php-packages/phing { };
|
phing = callPackage ../development/php-packages/phing { };
|
||||||
|
|
||||||
php-cs-fixer = callPackage ../development/php-packages/php-cs-fixer { };
|
php-cs-fixer = callPackage ../development/php-packages/php-cs-fixer { };
|
||||||
|
|
Loading…
Reference in a new issue