wrapper-manager/sandboxing/boxxy: refactor

This commit is contained in:
Gabriel Arazas 2024-08-10 21:28:31 +08:00
parent 20b483fda4
commit 11e2ae7e33
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360

View File

@ -99,10 +99,12 @@ in
(_: metadata:
let
inherit (metadata) source destination mode;
ruleArg =
if mode != null
then "${source}:${destination}:${mode}"
else "${source}:${destination}";
in
if mode != null
then "--rule ${source}:${destination}:${mode}"
else "--rule ${source}:${destination}")
"--rule ${lib.escapeShellArg ruleArg}")
submoduleCfg.rules);
arg0 = lib.getExe submoduleCfg.package;