nix: Disable deprecated PIE flags

Fixes the following warning with nixos-unstable (and upcoming 25.11)

    evaluation warning: The 'pie' hardening flag has been removed in
    favor of enabling PIE by default in compilers and should no longer
    be used. PIE can be disabled with the -no-pie compiler flag, but
    this is usually not necessary as most build systems pass this if
    needed. Usage of the 'pie' hardening flag will become an error in
    future.

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu
2025-11-17 19:09:56 +01:00
parent 8b4ad7aa49
commit 48c91c13ad

View File

@@ -85,8 +85,6 @@ stdenv.mkDerivation {
++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_11 ]
++ lib.optional gamemodeSupport gamemode;
hardeningEnable = lib.optionals stdenv.hostPlatform.isLinux [ "pie" ];
cmakeFlags = [
# downstream branding
(lib.cmakeFeature "Launcher_BUILD_PLATFORM" "nixpkgs")