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.
···3838 makeWrapper
3939 ];
40404141+ patches = [
4242+ # Reverts part of upstream PR 2761 so that we don't have to use a non-free Electron fork.
4343+ # https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/pull/2761
4444+ ./remove-drm-support.patch
4545+ ];
4646+4147 configurePhase = ''
4248 runHook preConfigure
4349
+24
pkgs/games/heroic/remove-drm-support.patch
···11+diff --git a/src/backend/main.ts b/src/backend/main.ts
22+index 2cd1a28f..a60e04d0 100644
33+--- a/src/backend/main.ts
44++++ b/src/backend/main.ts
55+@@ -19,8 +19,7 @@ import {
66+ powerSaveBlocker,
77+ protocol,
88+ screen,
99+- clipboard,
1010+- components
1111++ clipboard
1212+ } from 'electron'
1313+ import 'backend/updater'
1414+ import { autoUpdater } from 'electron-updater'
1515+@@ -286,8 +285,7 @@ if (!gotTheLock) {
1616+ initImagesCache()
1717+1818+ if (!process.env.CI) {
1919+- await components.whenReady()
2020+- logInfo(['DRM module staus', components.status()])
2121++ logInfo('DRM modules disabled for nixpkgs')
2222+ }
2323+2424+ // try to fix notification app name on windows