{ lib, stdenv, buildGame, fetchGog, makeWrapper , mono50, SDL2, libGL, openal }: buildGame rec { name = "stardew-valley-${version}"; version = "1.3.32"; src = fetchGog { productId = 1453375253; downloadName = "en3installer0"; sha256 = "1j6zzdjif2xbihcmpf66af4mbnxnvzjnfn0sq597i9a26h3caia2"; }; 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 '/