buildFHSUserEnv: rewrite not isNull check

Co-authored-by: Atemu <atemu.main@gmail.com>
This commit is contained in:
Dennis Gosnell 2023-03-03 09:04:17 +09:00 committed by GitHub
parent 23ee769358
commit 81d23b8d3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -23,7 +23,7 @@ let
exec ${run} "$@"
'';
versionStr = lib.optionalString (! isNull version) ("-" + version);
versionStr = lib.optionalString (version != null) ("-" + version);
nameAndVersion = name + versionStr;