heroic: add extraEnv input

Environment variables to pass to Heroic.

For example:

    pkgs.heroic.override {
      extraEnv.PROTON_ENABLE_WAYLAND = true;
    }

Adds feature parity with `steam` package.

(cherry picked from commit 6b9bf6240f)
This commit is contained in:
Matt Sturgeon 2026-06-01 18:53:44 +01:00 committed by github-actions[bot]
commit 61aa0b00f7

View file

@ -3,6 +3,7 @@
heroic-unwrapped,
extraPkgs ? pkgs: [ ],
extraLibraries ? pkgs: [ ],
extraEnv ? { },
}:
steam.buildRuntimeEnv {
@ -12,7 +13,7 @@ steam.buildRuntimeEnv {
runScript = "heroic";
extraPkgs = pkgs: [ heroic-unwrapped ] ++ extraPkgs pkgs;
inherit extraLibraries;
inherit extraLibraries extraEnv;
extraInstallCommands = ''
mkdir -p $out/share