Merge pull request #27303 from MatrixAI/phpcbf
phpPackages.phpcbf: init at 2.6.0
This commit is contained in:
commit
672171be57
@ -286,4 +286,31 @@ let
|
|||||||
maintainers = with maintainers; [ javaguirre ];
|
maintainers = with maintainers; [ javaguirre ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
phpcbf = pkgs.stdenv.mkDerivation rec {
|
||||||
|
name = "phpcbf-${version}";
|
||||||
|
version = "2.6.0";
|
||||||
|
|
||||||
|
src = pkgs.fetchurl {
|
||||||
|
url = "https://github.com/squizlabs/PHP_CodeSniffer/releases/download/${version}/phpcbf.phar";
|
||||||
|
sha256 = "1ijf52cgd85ypvw431nnmzij6156ryhfvmajpkr7plfw0iccqc5j";
|
||||||
|
};
|
||||||
|
|
||||||
|
phases = [ "installPhase" ];
|
||||||
|
nativeBuildInputs = [ pkgs.makeWrapper ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
install -D $src $out/libexec/phpcbf/phpcbf.phar
|
||||||
|
makeWrapper ${php}/bin/php $out/bin/phpcbf \
|
||||||
|
--add-flags "$out/libexec/phpcbf/phpcbf.phar"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with pkgs.lib; {
|
||||||
|
description = "PHP coding standard beautifier and fixer";
|
||||||
|
license = licenses.bsd3;
|
||||||
|
homepage = https://squizlabs.github.io/PHP_CodeSniffer/;
|
||||||
|
maintainers = with maintainers; [ cmcdragonkai ];
|
||||||
|
};
|
||||||
|
};
|
||||||
}; in self
|
}; in self
|
||||||
|
Loading…
x
Reference in New Issue
Block a user