{ lib, buildGame, fetchGog, unzip, makeWrapper, mono50, SDL2, libGL, openal }: buildGame rec { name = "stardew-valley-${version}"; version = "1.2.33"; src = fetchGog { productId = 1453375253; downloadName = "en3installer10"; sha256 = "199xf008cxm6ywb4d8c3dz0h7iiv9d0ka5k93gq0jqj3ga3fjn3i"; }; unpackCmd = "${unzip}/bin/unzip -qq \"$curSrc\" 'data/noarch/game/*' || :"; nativeBuildInputs = [ makeWrapper ]; buildPhase = let dllmap = { SDL2 = "${SDL2}/lib/libSDL2.so"; soft_oal = "${openal}/lib/libopenal.so"; }; in lib.concatStrings (lib.mapAttrsToList (dll: target: '' sed -i -e '/