mirror of
https://github.com/sbrow/nix.git
synced 2026-02-27 13:21:45 -05:00
fix: Added phpstan flake check.
This commit is contained in:
@@ -134,6 +134,24 @@
|
||||
vscode-langservers-extracted
|
||||
];
|
||||
};
|
||||
|
||||
checks = {
|
||||
phpstan = pkgs.stdenvNoCC.mkDerivation {
|
||||
name = "phpstan-check";
|
||||
dontBuild = true;
|
||||
doCheck = true;
|
||||
src = ./.;
|
||||
buildInputs = [ php php.packages.phpstan ];
|
||||
|
||||
checkPhase = ''
|
||||
mkdir $out
|
||||
cp -r $src/* $out
|
||||
cd $out
|
||||
php install.php
|
||||
phpstan analyze --ansi # --memory-limit=256M
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user