diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index a5ea5cd39acab9e3287c0006173e8cf779cd8ae6..c7e08f8d981d4297bc1497eaf4652bff2784a092 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -6182,6 +6182,13 @@ (define-public stepmania "/lib/glib-2.0/include")) #:phases (modify-phases %standard-phases + (add-after 'unpack 'ensure-gtk-module-can-be-found + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "src/arch/LoadingWindow/LoadingWindow_Gtk.cpp" + (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\" \\+ \"GtkModule.so\"") + (string-append "\"" (assoc-ref outputs "out") + "/share/stepmania/GtkModule.so\""))) + #t)) (add-after 'unpack 'fix-install-subdir ;; Installation would be done in "%out/stepmania-X.Y", but we ;; prefer the more common layout "%out/share/stepmania".