build(nix): copy compile_commands.json when entering dev shell
Signed-off-by: Seth Flynn <getchoo@tuta.io>
This commit is contained in:
parent
8a21b07915
commit
d6103c2a06
1 changed files with 10 additions and 0 deletions
10
flake.nix
10
flake.nix
|
@ -79,6 +79,16 @@
|
||||||
ccache
|
ccache
|
||||||
ninja
|
ninja
|
||||||
];
|
];
|
||||||
|
|
||||||
|
cmakeFlags = self.packages.${system}.prismlauncher-unwrapped.cmakeFlags ++ [
|
||||||
|
"-GNinja"
|
||||||
|
"-Bbuild"
|
||||||
|
];
|
||||||
|
|
||||||
|
shellHook = ''
|
||||||
|
cmake $cmakeFlags -D CMAKE_BUILD_TYPE=Debug
|
||||||
|
ln -s {build/,}compile_commands.json
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue