buildFHSUserEnv: rewrite not isNull check
Co-authored-by: Atemu <atemu.main@gmail.com>
This commit is contained in:
parent
23ee769358
commit
81d23b8d3a
2 changed files with 2 additions and 2 deletions
|
@ -194,7 +194,7 @@ let
|
|||
|
||||
bin = writeShellScriptBin name (bwrapCmd { initArgs = ''"$@"''; });
|
||||
|
||||
versionStr = lib.optionalString (! isNull version) ("-" + version);
|
||||
versionStr = lib.optionalString (version != null) ("-" + version);
|
||||
|
||||
nameAndVersion = name + versionStr;
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ let
|
|||
exec ${run} "$@"
|
||||
'';
|
||||
|
||||
versionStr = lib.optionalString (! isNull version) ("-" + version);
|
||||
versionStr = lib.optionalString (version != null) ("-" + version);
|
||||
|
||||
nameAndVersion = name + versionStr;
|
||||
|
||||
|
|
Loading…
Reference in a new issue