DRM support added in 2.9.0 prevent Heroic from running at all under mainline Electron, instead requiring running against a non-free fork with DRM support compiled in.
···38 makeWrapper
39 ];
4041+ patches = [
42+ # Reverts part of upstream PR 2761 so that we don't have to use a non-free Electron fork.
43+ # https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/pull/2761
44+ ./remove-drm-support.patch
45+ ];
46+47 configurePhase = ''
48 runHook preConfigure
49
+24
pkgs/games/heroic/remove-drm-support.patch
···000000000000000000000000
···1+diff --git a/src/backend/main.ts b/src/backend/main.ts
2+index 2cd1a28f..a60e04d0 100644
3+--- a/src/backend/main.ts
4++++ b/src/backend/main.ts
5+@@ -19,8 +19,7 @@ import {
6+ powerSaveBlocker,
7+ protocol,
8+ screen,
9+- clipboard,
10+- components
11++ clipboard
12+ } from 'electron'
13+ import 'backend/updater'
14+ import { autoUpdater } from 'electron-updater'
15+@@ -286,8 +285,7 @@ if (!gotTheLock) {
16+ initImagesCache()
17+18+ if (!process.env.CI) {
19+- await components.whenReady()
20+- logInfo(['DRM module staus', components.status()])
21++ logInfo('DRM modules disabled for nixpkgs')
22+ }
23+24+ // try to fix notification app name on windows