From 05d09a6da3465c7073e1c99d4e02d05fbd4f8df5 Mon Sep 17 00:00:00 2001 From: Elliot Cameron Date: Tue, 25 Jun 2024 15:34:02 -0400 Subject: [PATCH] google-cloud-sdk/components: use fetchurl instead of builtins.fetchurl These URLs don't need to be fetched at evaluation time. This change speeds up evaluation considerably for these components and allows them to be used in Hydra. --- pkgs/tools/admin/google-cloud-sdk/components.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/admin/google-cloud-sdk/components.nix b/pkgs/tools/admin/google-cloud-sdk/components.nix index 2b25d65a7f27..f63b5049e201 100644 --- a/pkgs/tools/admin/google-cloud-sdk/components.nix +++ b/pkgs/tools/admin/google-cloud-sdk/components.nix @@ -1,5 +1,6 @@ { lib , stdenv +, fetchurl , system , snapshotPath , autoPatchelfHook @@ -137,7 +138,7 @@ let inherit pname version snapshot; src = lib.optionalString (src != "") - (builtins.fetchurl + (fetchurl { url = src; inherit sha256;