* Use 'or'.

wip/yesman
Eelco Dolstra 11 years ago
parent 2cf1cbf2fe
commit 59aca26975
  1. 2
      pkgs/build-support/vm/default.nix

@ -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…
Cancel
Save