mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
refactor(nix): cleanup flake
Signed-off-by: Seth Flynn <getchoo@tuta.io>
This commit is contained in:
@ -1,42 +0,0 @@
|
||||
{
|
||||
runCommand,
|
||||
deadnix,
|
||||
llvmPackages_18,
|
||||
markdownlint-cli,
|
||||
nixfmt-rfc-style,
|
||||
statix,
|
||||
self,
|
||||
}:
|
||||
{
|
||||
formatting =
|
||||
runCommand "check-formatting"
|
||||
{
|
||||
nativeBuildInputs = [
|
||||
deadnix
|
||||
llvmPackages_18.clang-tools
|
||||
markdownlint-cli
|
||||
nixfmt-rfc-style
|
||||
statix
|
||||
];
|
||||
}
|
||||
''
|
||||
cd ${self}
|
||||
|
||||
echo "Running clang-format...."
|
||||
clang-format --dry-run --style='file' --Werror */**.{c,cc,cpp,h,hh,hpp}
|
||||
|
||||
echo "Running deadnix..."
|
||||
deadnix --fail
|
||||
|
||||
echo "Running markdownlint..."
|
||||
markdownlint --dot .
|
||||
|
||||
echo "Running nixfmt..."
|
||||
nixfmt --check .
|
||||
|
||||
echo "Running statix"
|
||||
statix check .
|
||||
|
||||
touch $out
|
||||
'';
|
||||
}
|
Reference in New Issue
Block a user