aboutsummaryrefslogtreecommitdiff
path: root/pkgs/top-level/php-packages.nix
diff options
context:
space:
mode:
authorElis Hirwing <elis@hirwing.se>2020-10-11 16:45:34 +0200
committerElis Hirwing <elis@hirwing.se>2020-10-11 17:04:25 +0200
commit2defaa83c0c39f88cbeaf40194f9192748e43f11 (patch)
tree34e29a7e5794c0591d2ce916163c5c2c34d64d8f /pkgs/top-level/php-packages.nix
parentb3f36d7cd7765cc70aac7f28b05957f2c9ad9e92 (diff)
phpPackages.phpstan: Move to separate directory
Diffstat (limited to 'pkgs/top-level/php-packages.nix')
-rw-r--r--pkgs/top-level/php-packages.nix34
1 files changed, 1 insertions, 33 deletions
diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix
index 226d5722a119..2767185dcc9d 100644
--- a/pkgs/top-level/php-packages.nix
+++ b/pkgs/top-level/php-packages.nix
@@ -49,39 +49,7 @@ in
phpmd = callPackage ../development/php-packages/phpmd { };
- phpstan = mkDerivation rec {
- version = "0.12.48";
- pname = "phpstan";
-
- src = pkgs.fetchurl {
- url = "https://github.com/phpstan/phpstan/releases/download/${version}/phpstan.phar";
- sha256 = "170yzz23lyipyckv8y2x9masv5qdmbskwwlbfc8750xb3g2q7pzl";
- };
-
- phases = [ "installPhase" ];
- nativeBuildInputs = [ pkgs.makeWrapper ];
-
- installPhase = ''
- mkdir -p $out/bin
- install -D $src $out/libexec/phpstan/phpstan.phar
- makeWrapper ${php}/bin/php $out/bin/phpstan \
- --add-flags "$out/libexec/phpstan/phpstan.phar"
- '';
-
- meta = with pkgs.lib; {
- description = "PHP Static Analysis Tool";
- longDescription = ''
- PHPStan focuses on finding errors in your code without actually
- running it. It catches whole classes of bugs even before you write
- tests for the code. It moves PHP closer to compiled languages in the
- sense that the correctness of each line of the code can be checked
- before you run the actual line.
- '';
- license = licenses.mit;
- homepage = "https://github.com/phpstan/phpstan";
- maintainers = teams.php.members;
- };
- };
+ phpstan = callPackage ../development/php-packages/phpstan { };
psalm = mkDerivation rec {
version = "3.11.2";