fetchurlBoot: add name attr
This commit is contained in:
parent
f1d48ca6ba
commit
2d64d1e601
@ -5,10 +5,11 @@ let mirrors = import ./mirrors.nix; in
|
|||||||
{ url ? builtins.head urls
|
{ url ? builtins.head urls
|
||||||
, urls ? []
|
, urls ? []
|
||||||
, sha256
|
, sha256
|
||||||
|
, name ? baseNameOf (toString url)
|
||||||
}:
|
}:
|
||||||
|
|
||||||
import <nix/fetchurl.nix> {
|
import <nix/fetchurl.nix> {
|
||||||
inherit system sha256;
|
inherit system sha256 name;
|
||||||
|
|
||||||
url =
|
url =
|
||||||
# Handle mirror:// URIs. Since <nix/fetchurl.nix> currently
|
# Handle mirror:// URIs. Since <nix/fetchurl.nix> currently
|
||||||
|
Loading…
x
Reference in New Issue
Block a user