about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorlinsui <linsui555@gmail.com>2022-05-15 11:57:44 +0800
committerlinsui <linsui555@gmail.com>2022-05-15 11:57:44 +0800
commit6e19bfd952bb78387493a7566b95af35e283fdeb (patch)
tree6ff4aa4ed1c1387fb98b0d342cd0f4249dd258b7 /pkgs
parent0ba57d89cab02990480576a0696b668136ace660 (diff)
buildGoModule: allow goproxy
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/go-modules/generic/default.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/development/go-modules/generic/default.nix b/pkgs/development/go-modules/generic/default.nix
index 502a981596e7a..4dff2d82848d6 100644
--- a/pkgs/development/go-modules/generic/default.nix
+++ b/pkgs/development/go-modules/generic/default.nix
@@ -79,12 +79,11 @@ let
     GO111MODULE = "on";
 
     impureEnvVars = lib.fetchers.proxyImpureEnvVars ++ [
-      "GIT_PROXY_COMMAND" "SOCKS_SERVER"
+      "GIT_PROXY_COMMAND" "SOCKS_SERVER" "GOPROXY"
     ];
 
     configurePhase = args.modConfigurePhase or ''
       runHook preConfigure
-
       export GOCACHE=$TMPDIR/go-cache
       export GOPATH="$TMPDIR/go"
       cd "${modRoot}"