mirror of
https://codeberg.org/icewind/flakelight-php.git
synced 2026-06-03 09:54:20 +02:00
add psalm check
This commit is contained in:
parent
052e3c8dc7
commit
d6b95b950d
2 changed files with 50 additions and 8 deletions
31
checks/phpstan.nix
Normal file
31
checks/phpstan.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
composerMeta,
|
||||
src,
|
||||
phpstan,
|
||||
vendor,
|
||||
stdenvNoCC,
|
||||
}: let
|
||||
inherit (composerMeta) version name;
|
||||
in
|
||||
stdenvNoCC.mkDerivation {
|
||||
inherit src version;
|
||||
pname = "${name}-phpstan";
|
||||
|
||||
nativeBuildInputs = [phpstan];
|
||||
|
||||
postPatch = ''
|
||||
ln -s ${vendor}/vendor vendor
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
phpstan analyse
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
touch $out
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue