Skip to content

Commit eaa9267

Browse files
feat: add a devShell for clang compilation
1 parent 5e9aec6 commit eaa9267

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

flake.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@
3434
'';
3535
};
3636

37+
clang = pkgs.mkShell {
38+
buildInputs = with pkgs; [ clang ] ++ commonBuildInputs;
39+
shellHook = ''
40+
export CXX=clang++;
41+
echo "Welcome to the C++ development environment with Clang!"
42+
'';
43+
};
44+
3745
lsp = pkgs.mkShell {
3846
buildInputs =
3947
with pkgs;

0 commit comments

Comments
 (0)