diff options
Diffstat (limited to 'nixpkgs/pkgs/build-support/go/module.nix')
-rw-r--r-- | nixpkgs/pkgs/build-support/go/module.nix | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/nixpkgs/pkgs/build-support/go/module.nix b/nixpkgs/pkgs/build-support/go/module.nix index a49ea8fac33a..3bd72cbea889 100644 --- a/nixpkgs/pkgs/build-support/go/module.nix +++ b/nixpkgs/pkgs/build-support/go/module.nix @@ -1,7 +1,7 @@ -{ go, cacert, git, lib, stdenv }: - let buildGoPackage = + { go, cacert, git, lib, stdenv }: + { name ? "${args'.pname}-${args'.version}" , src , nativeBuildInputs ? [ ] @@ -89,9 +89,6 @@ let runHook preConfigure export GOCACHE=$TMPDIR/go-cache export GOPATH="$TMPDIR/go" - # fixes 'GOPROXY list is not the empty string, but contains no entries' - # "https://proxy.golang.org,direct" is the go default - export GOPROXY="''${GOPROXY:-"https://proxy.golang.org,direct"}" # respect impureEnvVars cd "${modRoot}" runHook postConfigure ''; |