mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
chore(nix): add clang-tidy-diff wrapper
Signed-off-by: Seth Flynn <getchoo@tuta.io>
This commit is contained in:
parent
25387c5b6c
commit
720ea089b3
1 changed files with 21 additions and 3 deletions
24
flake.nix
24
flake.nix
|
|
@ -86,6 +86,7 @@
|
|||
let
|
||||
pkgs = nixpkgsFor.${system};
|
||||
llvm = pkgs.llvmPackages_19;
|
||||
python = pkgs.python3;
|
||||
mkShell = pkgs.mkShell.override { inherit (llvm) stdenv; };
|
||||
|
||||
packages' = self.packages.${system};
|
||||
|
|
@ -137,10 +138,27 @@
|
|||
|
||||
inputsFrom = [ packages'.prismlauncher-unwrapped ];
|
||||
|
||||
packages = with pkgs; [
|
||||
ccache
|
||||
packages = [
|
||||
pkgs.ccache
|
||||
llvm.clang-tools
|
||||
python3 # Required for `run-clang-tidy`, etc.
|
||||
python # NOTE(@getchoo): Required for run-clang-tidy, etc.
|
||||
|
||||
(pkgs.stdenvNoCC.mkDerivation {
|
||||
pname = "clang-tidy-diff";
|
||||
inherit (llvm.clang) version;
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkgs.installShellFiles
|
||||
python.pkgs.wrapPython
|
||||
];
|
||||
|
||||
dontUnpack = true;
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
postInstall = "installBin ${llvm.libclang.python}/share/clang/clang-tidy-diff.py";
|
||||
postFixup = "wrapPythonPrograms";
|
||||
})
|
||||
];
|
||||
|
||||
cmakeBuildType = "Debug";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue