From 2c79eeeb830d8b1bef216adc0e14b5b811afe1c7 Mon Sep 17 00:00:00 2001 From: Aidan Gauland Date: Sun, 10 Mar 2024 09:53:53 +1300 Subject: [PATCH] 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. --- pkgs/games/heroic/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/games/heroic/default.nix b/pkgs/games/heroic/default.nix index 03165fa5df7d..d3687f03df97 100644 --- a/pkgs/games/heroic/default.nix +++ b/pkgs/games/heroic/default.nix @@ -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 = ''