diff --git a/lib/fetchers.nix b/lib/fetchers.nix index 2ce5483e86e2..d4ae5f7dd996 100644 --- a/lib/fetchers.nix +++ b/lib/fetchers.nix @@ -1,10 +1,14 @@ # snippets that can be shared by multiple fetchers (pkgs/build-support) { lib }: let - commonH = hashTypes: rec { - hashNames = [ "hash" ] ++ hashTypes; - hashSet = genAttrs hashNames (const { }); - }; + commonH = + let + defaultHashNames = [ "hash" ]; + in + hashTypes: rec { + hashNames = defaultHashNames ++ hashTypes; + hashSet = genAttrs hashNames (const { }); + }; fakeH = { hash = lib.fakeHash;