From bd00c757d5f2f82de7394e6fd237a5189881cfc2 Mon Sep 17 00:00:00 2001 From: Raphael Date: Mon, 5 May 2025 13:41:19 +0200 Subject: [PATCH] style(flake): adding color to flake message --- flake.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 2cf2389..3451291 100644 --- a/flake.nix +++ b/flake.nix @@ -16,11 +16,21 @@ buildInputs = with pkgs; [ clang clang-tools - ]; + ] ++ ( + if pkgs.stdenv.isLinux then [ + valgrind + ] else [] + ); shellHook = '' + export DIRENV_LOG_FORMAT="" + export NIX_SHOW_STATS=0 + export NIX_HIDE_STATS=1 export CXX=clang++ export CC=clang + export CFLAGS="-std=c89 -Wall -Werror -Wextra" + export CXXFLAGS="-std=cpp98 -Wall -Werror -Wextra" + printf "\n\033[0;90mCPP env loaded for: \033[38;5;220m${system}\033[0m\n" ''; }; }