mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #70069 from shyim/add-psalm
phpPackages.psalm: init at 3.5.3
This commit is contained in:
commit
6b11080f9f
1 changed files with 26 additions and 0 deletions
|
@ -486,6 +486,32 @@ let
|
|||
};
|
||||
};
|
||||
|
||||
psalm = mkDerivation rec {
|
||||
version = "3.5.3";
|
||||
pname = "psalm";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://github.com/vimeo/psalm/releases/download/${version}/psalm.phar";
|
||||
sha256 = "1n5pfzln82wzk1qa40c436lhbin1g06lfdk89q720yzrrs07r8sw";
|
||||
};
|
||||
|
||||
phases = [ "installPhase" ];
|
||||
nativeBuildInputs = [ pkgs.makeWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
install -D $src $out/libexec/psalm/psalm.phar
|
||||
makeWrapper ${php}/bin/php $out/bin/psalm \
|
||||
--add-flags "$out/libexec/psalm/psalm.phar"
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "A static analysis tool for finding errors in PHP applications";
|
||||
license = licenses.mit;
|
||||
homepage = https://github.com/vimeo/psalm;
|
||||
};
|
||||
};
|
||||
|
||||
psysh = mkDerivation rec {
|
||||
version = "0.9.9";
|
||||
pname = "psysh";
|
||||
|
|
Loading…
Reference in a new issue