summary refs log tree commit diff
path: root/pkgs/games/uqm/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/games/uqm/default.nix')
-rw-r--r--pkgs/games/uqm/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/games/uqm/default.nix b/pkgs/games/uqm/default.nix
index 22a0418d4ca..1a2afa29f8f 100644
--- a/pkgs/games/uqm/default.nix
+++ b/pkgs/games/uqm/default.nix
@@ -70,6 +70,11 @@ in stdenv.mkDerivation rec {
     ln -s "${videos}" "uqm-${version}/content/addons/3dovideo"
   '';
 
+  # Using _STRINGS_H as include guard conflicts with glibc.
+  postPatch = ''
+    sed -i -e '/^#/s/_STRINGS_H/_UQM_STRINGS_H/g' src/uqm/comm/*/strings.h
+  '';
+
   # uqm has a 'unique' build system with a root script incidentally called
   # 'build.sh'.
   configurePhase = ''