stepmania: fix on i686

This commit is contained in:
Nikolay Amiantov 2016-03-09 22:13:54 +03:00
parent 9ad60eae48
commit a75eb513c6

View File

@ -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