From 41d0a5e068649f476149b622a7c18543aeb91a26 Mon Sep 17 00:00:00 2001 From: jeaye Date: Sun, 12 Jan 2025 11:26:25 -0800 Subject: [PATCH] Disable fortification for debug in nix flake --- flake.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/flake.nix b/flake.nix index e3f51e2f..3783bb4f 100644 --- a/flake.nix +++ b/flake.nix @@ -45,6 +45,12 @@ ## Dev libs. doctest ]; + + # Nix assumes fortification by default, but that fails with debug builds. + # Since this shell is used for development, we disabled fortification. It's + # still enabled for our release builds in build.nix. + # https://github.com/NixOS/nixpkgs/issues/18995 + hardeningDisable = [ "fortify" ]; }; }; };