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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user