fetchurlBoot: add name attr

This commit is contained in:
Robin Gloster 2017-08-04 08:22:04 +02:00
parent f1d48ca6ba
commit 2d64d1e601
No known key found for this signature in database
GPG Key ID: 5E4C836C632C2882

View File

@ -5,10 +5,11 @@ let mirrors = import ./mirrors.nix; in
{ url ? builtins.head urls
, urls ? []
, sha256
, name ? baseNameOf (toString url)
}:
import <nix/fetchurl.nix> {
inherit system sha256;
inherit system sha256 name;
url =
# Handle mirror:// URIs. Since <nix/fetchurl.nix> currently