From 81077e83aec798ae14c4d1844af0970242b9acef Mon Sep 17 00:00:00 2001 From: FliegendeWurst Date: Fri, 3 Jan 2025 11:24:34 +0100 Subject: [PATCH] godot3: fix PIE hardening --- pkgs/development/tools/godot/3/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/tools/godot/3/default.nix b/pkgs/development/tools/godot/3/default.nix index c69fcfa57b463..82a66a362f517 100644 --- a/pkgs/development/tools/godot/3/default.nix +++ b/pkgs/development/tools/godot/3/default.nix @@ -37,6 +37,12 @@ stdenv.mkDerivation (self: { sha256 = "sha256-C+1J5N0ETL1qKust+2xP9uB4x9NwrMqIm8aFAivVYQw="; }; + # Fix PIE hardening: https://github.com/godotengine/godot/pull/50737 + postPatch = '' + substituteInPlace platform/x11/detect.py \ + --replace-fail 'env.Append(LINKFLAGS=["-no-pie"])' "" + ''; + nativeBuildInputs = [ autoPatchelfHook installShellFiles