diff --git a/pkgs/by-name/sr/srb2/package.nix b/pkgs/by-name/sr/srb2/package.nix index 023f04c7f824..44209cf468bd 100644 --- a/pkgs/by-name/sr/srb2/package.nix +++ b/pkgs/by-name/sr/srb2/package.nix @@ -7,6 +7,7 @@ , nasm , libopenmpt , game-music-emu +, libGLU , libpng , SDL2 , SDL2_mixer @@ -80,6 +81,11 @@ stdenv.mkDerivation (finalAttrs: { ./thirdparty.patch ]; + postPatch = '' + substituteInPlace ./src/sdl/ogl_sdl.c \ + --replace libGLU.so.1 ${libGLU}/lib/libGLU.so.1 + ''; + desktopItems = [ (makeDesktopItem rec { name = "Sonic Robo Blast 2";