From f964c01658cf8706676e6af19586c6b60607e16f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Basile=20Cl=C3=A9ment?= Date: Sat, 15 Mar 2025 12:48:29 +0100 Subject: [PATCH] nix: Add development utilities to shell.nix - Remove hardening flags to allow debug builds (otherwise GCC complains because nix adds the FORTIFY_SOURCE flag, which is not compatible with -O0) - Allow ninja as build system - Add clang-tools dependency for LSP support --- shell.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/shell.nix b/shell.nix index 5315170d0..404e9e1b6 100644 --- a/shell.nix +++ b/shell.nix @@ -4,6 +4,7 @@ # Build tools cmake cmake-format + ninja bash curl git @@ -12,6 +13,7 @@ # Debug / Test valgrind gdb + clang-tools # Compiler gcc @@ -23,4 +25,8 @@ qt6.full qt6.wrapQtAppsHook ]; + + # Make debug builds work + # https://github.com/NixOS/nixpkgs/issues/18995 + hardeningDisable = [ "fortify" ]; }