Fix fetchurl/fetchTarball

This commit is contained in:
Eelco Dolstra 2015-06-01 15:08:09 +02:00
parent 1c88e100e7
commit c1323b53e3

View file

@ -1515,7 +1515,8 @@ void fetch(EvalState & state, const Pos & pos, Value * * args, Value & v,
} else
url = state.forceStringNoCtx(*args[0], pos);
mkString(v, downloadFileCached(url, unpack), PathSet({url}));
Path res = downloadFileCached(url, unpack);
mkString(v, res, PathSet({res}));
}