Files
i3/flake.nix
Michael Stapelberg 06dfce68d9 flake.nix: disable fortify hardening (results in compiler warnings)
Without this change, I see the following (harmless but annoying)
compiler warnings when building i3 after `meson setup build`:

    [3/106] Compiling C object libi3.a.p/libi3_g_utf8_make_valid.c.o
    In file included from /nix/store/gi4cz4ir3zlwhf1azqfgxqdnczfrwsr7-glibc-2.40-66-dev/include/bits/libc-header-start.h:33,
                     from /nix/store/gi4cz4ir3zlwhf1azqfgxqdnczfrwsr7-glibc-2.40-66-dev/include/stdio.h:28,
                     from ../include/libi3.h:17,
                     from ../libi3/g_utf8_make_valid.c:20:
    /nix/store/gi4cz4ir3zlwhf1azqfgxqdnczfrwsr7-glibc-2.40-66-dev/include/features.h:422:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
      422 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
          |    ^~~~~~~
2025-12-29 11:06:18 +01:00

32 lines
613 B
Nix

{
description = "i3 window manager development environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
};
outputs =
{ self, nixpkgs }:
let
systems = [
"x86_64-linux"
"aarch64-linux"
];
forAllSystems = nixpkgs.lib.genAttrs systems;
in
{
devShells = forAllSystems (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
default = pkgs.mkShell {
inputsFrom = [ pkgs.i3 ];
hardeningDisable = [ "fortify" ];
};
}
);
};
}