wrapper-manager/nixgl: change wraparound.executable to wraparound.arg0

Also for consistency.
This commit is contained in:
Gabriel Arazas 2024-08-01 17:27:01 +08:00
parent b43e5f279e
commit d7338a8722
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ let
wrapNixGL = arg0:
if isInNonNixOS then {
nixgl.enable = true;
nixgl.wraparound.executable = arg0;
nixgl.wraparound.arg0 = arg0;
} else {
inherit arg0;
};

View File

@ -87,7 +87,7 @@ in
};
wraparound = {
executable = lib.mkOption {
arg0 = lib.mkOption {
type = lib.types.nonEmptyStr;
description = ''
The executable to be wrapped around.
@ -117,7 +117,7 @@ in
if submoduleCfg.executable == null
then lib.getExe (nixgl config.nixgl.variant config.nixgl.src)
else submoduleCfg.executable;
prependArgs = lib.mkBefore ([ submoduleCfg.wraparound.executable ] ++ submoduleCfg.wraparound.extraArgs);
prependArgs = lib.mkBefore ([ submoduleCfg.wraparound.arg0 ] ++ submoduleCfg.wraparound.extraArgs);
};
};
in