diff --git a/pkgs/by-name/sn/snes9x/package.nix b/pkgs/by-name/sn/snes9x/package.nix index c5945095beb4..84951e4e3ac3 100644 --- a/pkgs/by-name/sn/snes9x/package.nix +++ b/pkgs/by-name/sn/snes9x/package.nix @@ -90,6 +90,11 @@ stdenv.mkDerivation (finalAttrs: { ]; postPatch = lib.optionalString withGtk '' + # Please remove after snes9x > 1.63. Fixed by upstream: + # https://github.com/snes9xgit/snes9x/commit/a4b4b98fffbde417ad550480021db89f18f11a5d.patch + substituteInPlace external/SPIRV-Cross/CMakeLists.txt \ + --replace-fail 'cmake_minimum_required(VERSION 3.0)' 'cmake_minimum_required(VERSION 3.5)' + substituteInPlace external/glad/src/egl.c \ --replace-fail libEGL.so.1 "${lib.getLib libGLX}/lib/libEGL.so.1" substituteInPlace external/glad/src/glx.c \