heroic: apply upstream adtraction fallback

2.13 moved to using sponsored links for GOG, which silently fail to load
if the system is using DNS-level ad-blocking.  Upstream just merged a
fallback to the regular GOG domain, which applies cleanly to the current
stable release.
This commit is contained in:
Aidan Gauland 2024-03-10 09:53:53 +13:00
parent 7b9f4b6feb
commit 2c79eeeb83
No known key found for this signature in database
GPG key ID: 16E68DD2D0E77C91

View file

@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, fetchYarnDeps
, yarn
, prefetch-yarn-deps
@ -45,6 +46,11 @@ in stdenv.mkDerivation rec {
./remove-drm-support.patch
# Make Heroic create Steam shortcuts (to non-steam games) with the correct path to heroic.
./fix-non-steam-shortcuts.patch
(fetchpatch {
name = "adtraction-fallback.patch";
url = "https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/pull/3575.patch";
hash = "sha256-XhYYLQf/oSX3uK+0KzfnAb49iaGwhl9W64Tg2Fqi8Gg=";
})
];
postPatch = ''