mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-04-30 14:44:31 +02:00
refactor(nix): rely more on setup hooks in dev shell
Signed-off-by: Seth Flynn <getchoo@tuta.io>
This commit is contained in:
parent
2d4bc09cb9
commit
de923a07d8
12
flake.nix
12
flake.nix
@ -121,18 +121,18 @@
|
|||||||
llvm.clang-tools
|
llvm.clang-tools
|
||||||
];
|
];
|
||||||
|
|
||||||
cmakeFlags = packages'.prismlauncher-unwrapped.cmakeFlags ++ [
|
cmakeBuildType = "Debug";
|
||||||
"-GNinja"
|
cmakeFlags = [ "-GNinja" ] ++ packages'.prismlauncher.cmakeFlags;
|
||||||
"-Bbuild"
|
dontFixCmake = true;
|
||||||
];
|
|
||||||
|
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
echo "Sourcing ${qt-wrapper-env}"
|
echo "Sourcing ${qt-wrapper-env}"
|
||||||
source ${qt-wrapper-env}
|
source ${qt-wrapper-env}
|
||||||
|
|
||||||
if [ ! -f compile_commands.json ]; then
|
if [ ! -f compile_commands.json ]; then
|
||||||
cmake $cmakeFlags -D CMAKE_BUILD_TYPE=Debug
|
cmakeConfigurePhase
|
||||||
ln -s {build/,}compile_commands.json
|
cd ..
|
||||||
|
ln -s "$cmakeBuildDir"/compile_commands.json compile_commands.json
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user