From d6103c2a068a8ebc96e8dd349f3878d84da7e64f Mon Sep 17 00:00:00 2001 From: Seth Flynn Date: Sat, 22 Mar 2025 22:19:16 -0400 Subject: [PATCH] build(nix): copy compile_commands.json when entering dev shell Signed-off-by: Seth Flynn --- flake.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/flake.nix b/flake.nix index 54add656d..d15a5bf03 100644 --- a/flake.nix +++ b/flake.nix @@ -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 + ''; }; } );