From 9878cd45a31746eb19aff49a26db64a006fb6221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliv=C3=A9r=20Falvai?= Date: Thu, 4 Sep 2025 10:21:28 +0200 Subject: [PATCH] google-cloud-sdk: make NumPy optional NumPy is an optional runtime dependency and only needed for IAP TCP forwarding: https://cloud.google.com/iap/docs/using-tcp-forwarding#increasing_the_tcp_upload_bandwidth The closure size is 2.05 GiB, of which 1.66 GiB is NumPy --- pkgs/by-name/go/google-cloud-sdk/package.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/go/google-cloud-sdk/package.nix b/pkgs/by-name/go/google-cloud-sdk/package.nix index 4649fa57680c..d4fbf411c516 100644 --- a/pkgs/by-name/go/google-cloud-sdk/package.nix +++ b/pkgs/by-name/go/google-cloud-sdk/package.nix @@ -18,6 +18,9 @@ callPackage, installShellFiles, with-gce ? false, + # NumPy is an optional runtime dependency and only needed for IAP TCP forwarding + # https://cloud.google.com/iap/docs/using-tcp-forwarding#increasing_the_tcp_upload_bandwidth + with-numpy ? true, }: let @@ -47,10 +50,10 @@ let cryptography pyopenssl crcmod - numpy grpcio ] ++ lib.optional (with-gce) google-compute-engine + ++ lib.optional (with-numpy) numpy ); data = import ./data.nix { };