From 8342bac697b7abf036ec1c005af695fb8ab99b13 Mon Sep 17 00:00:00 2001 From: Huy Nguyen Date: Wed, 17 Jan 2024 04:27:35 -0800 Subject: [PATCH] Nix: disable fortify for devshell (#4463) This disables '_FORTIFY_SOURCE' Werrors trying to compile wlroots. Long standing issue in https://github.com/NixOS/nixpkgs/issues/60919 afaik. After this change you should be able to: ``` nix develop mmeson setup build -Dbuildtype=debug ninja -C build ``` --- flake.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/flake.nix b/flake.nix index 7f9a958b..40d04489 100644 --- a/flake.nix +++ b/flake.nix @@ -86,6 +86,7 @@ name = "hyprland-shell"; nativeBuildInputs = with pkgsFor.${system}; [cmake python3]; buildInputs = [self.packages.${system}.wlroots-hyprland]; + hardeningDisable = [ "fortify" ]; inputsFrom = [ self.packages.${system}.wlroots-hyprland self.packages.${system}.hyprland