mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
* Use 'or'.
This commit is contained in:
parent
2cf1cbf2fe
commit
59aca26975
|
@ -291,7 +291,7 @@ rec {
|
|||
args = ["-e" (vmRunCommand qemuCommandLinux)];
|
||||
origArgs = attrs.args;
|
||||
origBuilder = attrs.builder;
|
||||
QEMU_OPTS = "-m ${toString (if attrs ? memSize then attrs.memSize else 512)}";
|
||||
QEMU_OPTS = "-m ${toString (attrs.memSize or 512)}";
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue