buildFHSEnvBubblewrap: allow being passed 'pname'
`buildFHSEnvBubblewrap { pname = ...; }` currently results in eval error because args.name doesn't exist then. Fix it by only using args.name if it exists.
This commit is contained in:
parent
e12483116b
commit
70b5588b4e
|
@ -31,7 +31,7 @@ assert (pname != null || version != null) -> (name == null && pname != null); #
|
|||
|
||||
with builtins;
|
||||
let
|
||||
pname = if args.name != null then args.name else args.pname;
|
||||
pname = if args ? name && args.name != null then args.name else args.pname;
|
||||
versionStr = lib.optionalString (version != null) ("-" + version);
|
||||
name = pname + versionStr;
|
||||
|
||||
|
|
Loading…
Reference in a new issue