Skip to content

Commit

Permalink
Nix: disable fortify for devshell (#4463)
Browse files Browse the repository at this point in the history
This disables '_FORTIFY_SOURCE' Werrors trying to compile wlroots.
Long standing issue in NixOS/nixpkgs#60919
afaik.

After this change you should be able to:
```
nix develop
mmeson setup build -Dbuildtype=debug
ninja -C build
```
  • Loading branch information
huynguyen authored Jan 17, 2024
1 parent 3c964a9 commit 8342bac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8342bac

Please sign in to comment.