21 stdenv.mkDerivation (finalAttrs: {
25 src = fetchFromGitHub {
26 owner = "KartKrewDev";
28 rev = "v${finalAttrs.version}";
29 hash = "sha256-X2rSwZOEHtnSJBpu+Xf2vkxGUAZSNSXi6GCuGlM6jhY=";
33 name = "${finalAttrs.pname}-${finalAttrs.version}-assets";
34 url = "https://github.com/KartKrewDev/RingRacers/releases/download/v${finalAttrs.version}/Dr.Robotnik.s-Ring-Racers-v${finalAttrs.version}-Assets.zip";
35 hash = "sha256-sHeI1E6uNF0gBNd1e1AU/JT9wyZdkCQgYLiMPZqXAVc=";
58 "-DSRB2_ASSET_DIRECTORY=${finalAttrs.assets}"
59 "-DGME_INCLUDE_DIR=${game-music-emu}/include"
60 "-DSDL2_MIXER_INCLUDE_DIR=${lib.getDev SDL2_mixer}/include/SDL2"
61 "-DSDL2_INCLUDE_DIR=${lib.getDev SDL2}/include/SDL2"
69 comment = "This is Racing at the Next Level";
70 desktopName = "Dr. Robotnik's Ring Racers";
71 startupWMClass = ".ringracers-wrapped";
72 categories = [ "Game" ];
79 install -Dm644 ../srb2.png $out/share/icons/hicolor/256x256/apps/ringracers.png
80 install -Dm755 bin/ringracers $out/bin/ringracers
82 wrapProgram $out/bin/ringracers \
83 --set RINGRACERSWADDIR "${finalAttrs.assets}"
89 description = "Kart racing video game based on Sonic Robo Blast 2 (SRB2), itself based on a modified version of Doom Legacy";
90 homepage = "https://kartkrew.org";
91 platforms = platforms.linux;
92 license = licenses.gpl2Plus;
93 maintainers = with maintainers; [
97 mainProgram = "ringracers";