21 installer = fetchurl {
22 url = "https://github.com/STJr/Kart-Public/releases/download/${release_tag}/srb2kart-v13-Installer.exe";
23 sha256 = "0bk36y7wf6xfdg6j0b8qvk8671hagikzdp5nlfqg478zrj0qf6cs";
26 in stdenv.mkDerivation rec {
30 src = fetchFromGitHub {
34 sha256 = "131g9bmc9ihvz0klsc3yzd0pnkhx3mz1vzm8y7nrrsgdz5278y49";
53 #"-DSRB2_ASSET_DIRECTORY=/build/source/assets"
54 "-DGME_INCLUDE_DIR=${game-music-emu}/include"
55 "-DSDL2_MIXER_INCLUDE_DIR=${lib.getDev SDL2_mixer}/include/SDL2"
56 "-DSDL2_INCLUDE_DIR=${lib.getDev SDL2}/include/SDL2"
64 substituteInPlace src/sdl/i_system.c \
65 --replace '@wadlocation@' $out
69 mkdir assets/installer
70 pushd assets/installer
71 unzip ${installer} "*.kart" srb2.srb
76 mkdir -p $out/bin $out/share/games/SRB2Kart
77 mv $out/srb2kart* $out/bin/
78 mv $out/*.kart $out/share/games/SRB2Kart
82 description = "SRB2Kart is a classic styled kart racer";
83 homepage = "https://mb.srb2.org/threads/srb2kart.25868/";
84 platforms = platforms.linux;
85 license = licenses.gpl2Plus;
86 maintainers = with maintainers; [ viric ];