From 75a218c47f32956767d52b358f3e3bd29b578293 Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 19 Sep 2025 16:21:43 +0200 Subject: [PATCH] build(nix/shell): Adding a shell hook to flake - Adding the CC environnment variable - Printing the message to announce the end of init --- flake.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flake.nix b/flake.nix index 3b49413..b6805de 100644 --- a/flake.nix +++ b/flake.nix @@ -20,5 +20,9 @@ pkgs.tree ] ++ (if pkgs.stdenv.isLinux then [ pkgs.valgrind ] else [ ]); }; + shellHook = '' + export CC=${pkgs.clang} + printf "\n\033[0;90mC env loaded for: \033[38;5;220m${system}\033[0m\n" + ''; }); }