fetchurl: avoid resolvedUrl thunk
This commit is contained in:
@@ -278,8 +278,6 @@ lib.extendMkDerivation {
|
||||
|
||||
finalHashHasColon = match ".*:.*" finalAttrs.hash != null;
|
||||
finalHashColonMatch = match "([^:]+)[:](.*)" finalAttrs.hash;
|
||||
|
||||
resolvedUrl = head (resolveUrl url);
|
||||
in
|
||||
|
||||
derivationArgs
|
||||
@@ -382,7 +380,8 @@ lib.extendMkDerivation {
|
||||
|
||||
inherit meta;
|
||||
passthru = {
|
||||
inherit url resolvedUrl;
|
||||
inherit url;
|
||||
resolvedUrl = head (resolveUrl url);
|
||||
}
|
||||
// passthru;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user