summary refs log tree commit diff
path: root/pkgs/development/go-modules
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/development/go-modules
parent0ba57d89cab02990480576a0696b668136ace660 (diff)
downloadnixpkgs-6e19bfd952bb78387493a7566b95af35e283fdeb.tar
nixpkgs-6e19bfd952bb78387493a7566b95af35e283fdeb.tar.gz
nixpkgs-6e19bfd952bb78387493a7566b95af35e283fdeb.tar.bz2
nixpkgs-6e19bfd952bb78387493a7566b95af35e283fdeb.tar.lz
nixpkgs-6e19bfd952bb78387493a7566b95af35e283fdeb.tar.xz
nixpkgs-6e19bfd952bb78387493a7566b95af35e283fdeb.tar.zst
nixpkgs-6e19bfd952bb78387493a7566b95af35e283fdeb.zip
buildGoModule: allow goproxy
Diffstat (limited to 'pkgs/development/go-modules')
-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 502a981596e..4dff2d82848 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}"