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.
This commit is contained in:
Elliot Cameron 2024-06-25 15:34:02 -04:00
parent 1813936aff
commit 05d09a6da3

View File

@ -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;