build(nix): copy compile_commands.json when entering dev shell

Signed-off-by: Seth Flynn <getchoo@tuta.io>
This commit is contained in:
Seth Flynn 2025-03-22 22:19:16 -04:00
parent 8a21b07915
commit d6103c2a06
No known key found for this signature in database
GPG Key ID: D31BD0D494BBEE86

View File

@ -79,6 +79,16 @@
ccache
ninja
];
cmakeFlags = self.packages.${system}.prismlauncher-unwrapped.cmakeFlags ++ [
"-GNinja"
"-Bbuild"
];
shellHook = ''
cmake $cmakeFlags -D CMAKE_BUILD_TYPE=Debug
ln -s {build/,}compile_commands.json
'';
};
}
);