lol

Merge pull request #265555 from aidalgol/heroic-2.10

heroic: 2.9.2 -> 2.10.0

authored by

K900 and committed by
GitHub
40e5c027 eaad9ece

+58 -20
+13 -3
pkgs/games/heroic/default.nix
··· 17 17 let appName = "heroic"; 18 18 in stdenv.mkDerivation rec { 19 19 pname = "heroic-unwrapped"; 20 - version = "2.9.2"; 20 + version = "2.10.0"; 21 21 22 22 src = fetchFromGitHub { 23 23 owner = "Heroic-Games-Launcher"; 24 24 repo = "HeroicGamesLauncher"; 25 25 rev = "v${version}"; 26 - hash = "sha256-kCvMUhN1kjGb5rV+lkKm1FFYBJUSQGOKTY1DQdiAWLU="; 26 + hash = "sha256-umPQIxwIahjbO4QbkKEoeSSeYT2UatsTGRPrLgw5KW8="; 27 27 }; 28 28 29 29 offlineCache = fetchYarnDeps { 30 30 yarnLock = "${src}/yarn.lock"; 31 - hash = "sha256-kHZL7TENVK58dvr8PBFtWYZ2PSKEYESX4e1xYmMA5+Y="; 31 + hash = "sha256-o5ztk4okH21Op1jqHZfranR12M8B1Y/K95aWb10tf5o="; 32 32 }; 33 33 34 34 nativeBuildInputs = [ ··· 45 45 ./remove-drm-support.patch 46 46 # Make Heroic create Steam shortcuts (to non-steam games) with the correct path to heroic. 47 47 ./fix-non-steam-shortcuts.patch 48 + # Fix reg add infinite loop 49 + # Submitted upstream: https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/pull/3210 50 + ./fix-infinite-loop.patch 48 51 ]; 52 + 53 + postPatch = '' 54 + # We are not packaging this as an Electron application bundle, so Electron 55 + # reports to the application that is is not "packaged", which causes Heroic 56 + # to take some incorrect codepaths meant for development environments. 57 + substituteInPlace src/**/*.ts --replace 'app.isPackaged' 'true' 58 + ''; 49 59 50 60 configurePhase = '' 51 61 runHook preConfigure
+1
pkgs/games/heroic/fhsenv.nix
··· 29 29 perl 30 30 psmisc 31 31 python3 32 + unzip 32 33 which 33 34 xorg.xrandr 34 35 zstd
+23
pkgs/games/heroic/fix-infinite-loop.patch
··· 1 + From b698779053b7ba31bd8e69b230e86515e3019bf6 Mon Sep 17 00:00:00 2001 2 + From: K900 <me@0upti.me> 3 + Date: Sun, 5 Nov 2023 22:04:32 +0300 4 + Subject: [PATCH] Force add the registry entry 5 + 6 + Otherwise, newer Wine versions will prompt to overwrite it and loop there forever. 7 + --- 8 + src/backend/storeManagers/legendary/setup.ts | 2 +- 9 + 1 file changed, 1 insertion(+), 1 deletion(-) 10 + 11 + diff --git a/src/backend/storeManagers/legendary/setup.ts b/src/backend/storeManagers/legendary/setup.ts 12 + index 1837106621..b5c2432435 100644 13 + --- a/src/backend/storeManagers/legendary/setup.ts 14 + +++ b/src/backend/storeManagers/legendary/setup.ts 15 + @@ -20,7 +20,7 @@ export const legendarySetup = async (appName: string) => { 16 + 17 + // Fixes games like Fallout New Vegas and Dishonored: Death of the Outsider 18 + await runWineCommandOnGame(appName, { 19 + - commandParts: ['reg', 'add', 'HKEY_CLASSES_ROOT\\com.epicgames.launcher'], 20 + + commandParts: ['reg', 'add', 'HKEY_CLASSES_ROOT\\com.epicgames.launcher', '/f'], 21 + wait: true, 22 + protonVerb: 'waitforexitandrun' 23 + })
+14 -10
pkgs/games/heroic/remove-drm-support.patch
··· 1 1 diff --git a/src/backend/main.ts b/src/backend/main.ts 2 - index 2cd1a28f..a60e04d0 100644 2 + index 83b58bb2..f61656fa 100644 3 3 --- a/src/backend/main.ts 4 4 +++ b/src/backend/main.ts 5 - @@ -19,8 +19,7 @@ import { 6 - powerSaveBlocker, 5 + @@ -19,7 +19,6 @@ import { 7 6 protocol, 8 7 screen, 9 - - clipboard, 10 - - components 11 - + clipboard 8 + clipboard, 9 + - components, 10 + session 12 11 } from 'electron' 13 12 import 'backend/updater' 14 - import { autoUpdater } from 'electron-updater' 15 - @@ -286,8 +285,7 @@ if (!gotTheLock) { 16 - initImagesCache() 13 + @@ -310,14 +309,7 @@ if (!gotTheLock) { 14 + } 17 15 18 16 if (!process.env.CI) { 19 - - await components.whenReady() 17 + - await components.whenReady().catch((e) => { 18 + - logError([ 19 + - 'Failed to download / update DRM components.', 20 + - 'Make sure you do not block update.googleapis.com domain if you want to use WideVine in Browser sideloaded apps', 21 + - e 22 + - ]) 23 + - }) 20 24 - logInfo(['DRM module staus', components.status()]) 21 25 + logInfo('DRM modules disabled for nixpkgs') 22 26 }
+3 -3
pkgs/games/legendary-gl/default.nix
··· 9 9 10 10 buildPythonApplication rec { 11 11 pname = "legendary-gl"; # Name in pypi 12 - version = "0.20.33"; 12 + version = "unstable-2023-10-14"; 13 13 14 14 src = fetchFromGitHub { 15 15 owner = "derrod"; 16 16 repo = "legendary"; 17 - rev = "refs/tags/${version}"; 18 - sha256 = "sha256-fEQUChkxrKV2IkFGORUolZE2qTzA10Xxogjl5Va4TcE="; 17 + rev = "450784283dd49152dda6322db2fb2ef33e7c382e"; 18 + sha256 = "sha256-iwIaxD35tkOX6NX1SVNmN2OQACwaX/C4xnfgT5YcUvg="; 19 19 }; 20 20 21 21 propagatedBuildInputs = [
+3 -3
pkgs/games/nile/default.nix
··· 15 15 16 16 buildPythonApplication rec { 17 17 pname = "nile"; 18 - version = "1.0.0"; 18 + version = "unstable-2023-10-03"; 19 19 format = "pyproject"; 20 20 21 21 src = fetchFromGitHub { 22 22 owner = "imLinguin"; 23 23 repo = "nile"; 24 - rev = "f5f3b96f6483c59cfc646afbda6e97cb0bd94778"; 25 - hash = "sha256-HibY3U9/MibEDwHY+YiErW/pz6qwtps8wwjhznTISgA="; 24 + rev = "8f7ab2650fc730efc8960b5fcd71421d724a4108"; 25 + hash = "sha256-Vhjp9JX8VX0PWsvEh5eOhz7vsIEaiCyPNPOjibE8GXo="; 26 26 }; 27 27 28 28 disabled = pythonOlder "3.8";
+1 -1
pkgs/top-level/all-packages.nix
··· 37318 37318 37319 37319 heroic-unwrapped = callPackage ../games/heroic { 37320 37320 # Match the version used by the upstream package. 37321 - electron = electron_24; 37321 + electron = electron_27; 37322 37322 }; 37323 37323 37324 37324 heroic = callPackage ../games/heroic/fhsenv.nix { };