about summary refs log tree commit diff
path: root/pkgs/games
diff options
context:
space:
mode:
authorAidan Gauland <aidalgol@fastmail.net>2024-03-10 09:53:53 +1300
committerAidan Gauland <aidalgol@fastmail.net>2024-03-10 09:53:53 +1300
commit2c79eeeb830d8b1bef216adc0e14b5b811afe1c7 (patch)
tree630fdf1d286edaf9824ddd1c7b915ee678e926d2 /pkgs/games
parent7b9f4b6febde110cbe247ec71ec76da14b5c48ca (diff)
downloadnixlib-2c79eeeb830d8b1bef216adc0e14b5b811afe1c7.tar
nixlib-2c79eeeb830d8b1bef216adc0e14b5b811afe1c7.tar.gz
nixlib-2c79eeeb830d8b1bef216adc0e14b5b811afe1c7.tar.bz2
nixlib-2c79eeeb830d8b1bef216adc0e14b5b811afe1c7.tar.lz
nixlib-2c79eeeb830d8b1bef216adc0e14b5b811afe1c7.tar.xz
nixlib-2c79eeeb830d8b1bef216adc0e14b5b811afe1c7.tar.zst
nixlib-2c79eeeb830d8b1bef216adc0e14b5b811afe1c7.zip
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.
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/heroic/default.nix6
1 files changed, 6 insertions, 0 deletions
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 = ''