phpPackages.psalm: Move to separate directory
This commit is contained in:
parent
2defaa83c0
commit
8473816508
30
pkgs/development/php-packages/psalm/default.nix
Normal file
30
pkgs/development/php-packages/psalm/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ mkDerivation, fetchurl, pkgs, lib, php }:
|
||||
let
|
||||
pname = "psalm";
|
||||
version = "3.11.2";
|
||||
in
|
||||
mkDerivation {
|
||||
inherit pname version;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/vimeo/psalm/releases/download/${version}/psalm.phar";
|
||||
sha256 = "1ani0907whqy2ycr01sjlvrmwps4dg5igim8z1qyv8grhwvw6gb0";
|
||||
};
|
||||
|
||||
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";
|
||||
maintainers = teams.php.members;
|
||||
};
|
||||
}
|
|
@ -51,32 +51,7 @@ in
|
|||
|
||||
phpstan = callPackage ../development/php-packages/phpstan { };
|
||||
|
||||
psalm = mkDerivation rec {
|
||||
version = "3.11.2";
|
||||
pname = "psalm";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://github.com/vimeo/psalm/releases/download/${version}/psalm.phar";
|
||||
sha256 = "1ani0907whqy2ycr01sjlvrmwps4dg5igim8z1qyv8grhwvw6gb0";
|
||||
};
|
||||
|
||||
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";
|
||||
maintainers = teams.php.members;
|
||||
};
|
||||
};
|
||||
psalm = callPackage ../development/php-packages/psalm { };
|
||||
|
||||
psysh = mkDerivation rec {
|
||||
version = "0.10.3";
|
||||
|
|
Loading…
Reference in a new issue