fetchurl/boot: use head foo instead of elemAt foo 0

This commit is contained in:
Eman Resu
2026-05-21 23:46:52 -04:00
parent 3d6d604a74
commit 14848d5db5
+1 -1
View File
@@ -53,5 +53,5 @@ import <nix/fetchurl.nix> {
url_ = handleUrl url;
m = match "mirror://([a-z]+)/(.*)" url_;
in
if m == null then url_ else head (mirrors.${elemAt m 0}) + (elemAt m 1);
if m == null then url_ else head (mirrors.${head m}) + (elemAt m 1);
}