build: greatly speed up build times using pch

This commit is contained in:
outfoxxed 2024-03-11 18:18:55 -07:00
parent 3480707e99
commit c44041653c
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
10 changed files with 51 additions and 8 deletions

View file

@ -3,7 +3,7 @@
nix-gitignore,
pkgs,
keepDebugInfo,
stdenv ? (keepDebugInfo pkgs.stdenv),
buildStdenv ? pkgs.clang17Stdenv,
cmake,
ninja,
@ -23,7 +23,7 @@
else "unknown"),
debug ? false,
enableWayland ? true,
}: stdenv.mkDerivation {
}: buildStdenv.mkDerivation {
pname = "quickshell${lib.optionalString debug "-debug"}";
version = "0.1.0";
src = nix-gitignore.gitignoreSource "/docs\n/examples\n" ./.;