23 version = "5.1.0-b2-unstable-2022-11-14";
25 src = fetchFromGitHub {
28 rev = "d55acb1ba26f1c5b5e3048d6d6c0bd116625216f";
29 hash = "sha256-49H2Q61R4l/G0fWsjCjiAUXeWwG3lcsDpV5XvR3l3QE=";
33 # https://github.com/stepmania/stepmania/pull/2247
35 name = "fix-building-with-ffmpeg6.patch";
36 url = "https://github.com/stepmania/stepmania/commit/3fef5ef60b7674d6431f4e1e4ba8c69b0c21c023.patch";
37 hash = "sha256-m+5sP+mIpcSjioRBdzChqja5zwNcwdSNAfvSJ2Lww+g=";
42 sed '1i#include <ctime>' -i src/arch/ArchHooks/ArchHooks.h # gcc12
45 nativeBuildInputs = [ cmake nasm ];
63 "-DWITH_SYSTEM_FFMPEG=1"
64 "-DWITH_SYSTEM_PNG=on"
65 "-DGTK2_GDKCONFIG_INCLUDE_DIR=${gtk2.out}/lib/gtk-2.0/include"
66 "-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib.out}/lib/glib-2.0/include"
71 ln -s $out/stepmania-5.1/stepmania $out/bin/stepmania
74 cp -r $src/icons $out/share/
76 install -Dm444 $src/stepmania.desktop -t $out/share/applications
80 homepage = "https://www.stepmania.com/";
81 description = "Free dance and rhythm game for Windows, Mac, and Linux";
82 platforms = platforms.linux;
83 license = licenses.mit; # expat version
84 maintainers = with maintainers; [ h7x4 ];
85 mainProgram = "stepmania";