phpPackages.php-cs-fixer: Move to separate directory
This commit is contained in:
parent
e9a9b9ba82
commit
47aa265985
30
pkgs/development/php-packages/php-cs-fixer/default.nix
Normal file
30
pkgs/development/php-packages/php-cs-fixer/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ mkDerivation, fetchurl, pkgs, lib, php }:
|
||||
let
|
||||
pname = "php-cs-fixer";
|
||||
version = "2.16.4";
|
||||
in
|
||||
mkDerivation {
|
||||
inherit pname version;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v${version}/php-cs-fixer.phar";
|
||||
sha256 = "05rdvypxc86hjs8b7id2csa7g1rf7dk2swzfvd5768abdgfasvr8";
|
||||
};
|
||||
|
||||
phases = [ "installPhase" ];
|
||||
nativeBuildInputs = [ pkgs.makeWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
install -D $src $out/libexec/php-cs-fixer/php-cs-fixer.phar
|
||||
makeWrapper ${php}/bin/php $out/bin/php-cs-fixer \
|
||||
--add-flags "$out/libexec/php-cs-fixer/php-cs-fixer.phar"
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "A tool to automatically fix PHP coding standards issues";
|
||||
license = licenses.mit;
|
||||
homepage = "http://cs.sensiolabs.org/";
|
||||
maintainers = with maintainers; [ jtojnar ] ++ teams.php.members;
|
||||
};
|
||||
}
|
|
@ -39,32 +39,7 @@ in
|
|||
|
||||
composer2 = callPackage ../development/php-packages/composer/2.0.nix { };
|
||||
|
||||
php-cs-fixer = mkDerivation rec {
|
||||
version = "2.16.4";
|
||||
pname = "php-cs-fixer";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v${version}/php-cs-fixer.phar";
|
||||
sha256 = "05rdvypxc86hjs8b7id2csa7g1rf7dk2swzfvd5768abdgfasvr8";
|
||||
};
|
||||
|
||||
phases = [ "installPhase" ];
|
||||
buildInputs = [ pkgs.makeWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
install -D $src $out/libexec/php-cs-fixer/php-cs-fixer.phar
|
||||
makeWrapper ${php}/bin/php $out/bin/php-cs-fixer \
|
||||
--add-flags "$out/libexec/php-cs-fixer/php-cs-fixer.phar"
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "A tool to automatically fix PHP coding standards issues";
|
||||
license = licenses.mit;
|
||||
homepage = "http://cs.sensiolabs.org/";
|
||||
maintainers = with maintainers; [ jtojnar ] ++ teams.php.members;
|
||||
};
|
||||
};
|
||||
php-cs-fixer = callPackage ../development/php-packages/php-cs-fixer { };
|
||||
|
||||
php-parallel-lint = mkDerivation rec {
|
||||
version = "1.0.0";
|
||||
|
|
Loading…
Reference in a new issue