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.
This commit is contained in:
Matt Sturgeon
2026-06-01 18:53:44 +01:00
parent 3109eaae18
commit 6b9bf6240f
+2 -1
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