summary refs log tree commit diff
path: root/pkgs/games/stepmania/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/games/stepmania/default.nix')
-rw-r--r--pkgs/games/stepmania/default.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/games/stepmania/default.nix b/pkgs/games/stepmania/default.nix
index 0ec52cc58043..c4dc96a4c4df 100644
--- a/pkgs/games/stepmania/default.nix
+++ b/pkgs/games/stepmania/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, lib, fetchFromGitHub, cmake, nasm
+{ stdenv, lib, fetchpatch, fetchFromGitHub, cmake, nasm
 , gtk2, glib, ffmpeg, alsaLib, libmad, libogg, libvorbis
 , glew, libpulseaudio
 }:
@@ -27,6 +27,14 @@ stdenv.mkDerivation rec {
     "-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib}/lib/glib-2.0/include"
   ];
 
+  patches = [
+    # Fix compilation on i686
+    (fetchpatch {
+      url = "https://github.com/stepmania/stepmania/commit/f1e114aa03c90884946427bb43a75badec21f163.patch";
+      sha256 = "1cm14w92dilqvlyqfffiihf09ra97hxzgfal5gx08brc3j1yyzdw";
+    })
+  ];
+
   postInstall = ''
     mkdir -p $out/bin
     ln -s $out/stepmania-5.0/stepmania $out/bin/stepmania