From 48c91c13adb6f1d240e038b4db2819535800e8ec Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Mon, 17 Nov 2025 19:09:56 +0100 Subject: [PATCH] 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 --- nix/unwrapped.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/nix/unwrapped.nix b/nix/unwrapped.nix index 69c5f1343..2a00b5620 100644 --- a/nix/unwrapped.nix +++ b/nix/unwrapped.nix @@ -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")