diff --git a/corepkgs/fetchurl.nix b/corepkgs/fetchurl.nix
index 72107294c72a5f87cccae9fdf7bcf932cedb3562..3d467fe187b03ef9b3e94c366a0a892ebb60813a 100644
--- a/corepkgs/fetchurl.nix
+++ b/corepkgs/fetchurl.nix
@@ -3,7 +3,7 @@ with import <nix/config.nix>;
 # Argh, this thing is duplicated (more-or-less) in Nixpkgs.  Need to
 # find a way to combine them.
 
-{system, url, outputHash ? "", outputHashAlgo ? "", md5 ? "", sha1 ? "", sha256 ? ""}:
+{system ? builtins.currentSystem, url, outputHash ? "", outputHashAlgo ? "", md5 ? "", sha1 ? "", sha256 ? ""}:
 
 assert (outputHash != "" && outputHashAlgo != "")
     || md5 != "" || sha1 != "" || sha256 != "";