diff options
author | Joachim Schiele <js@lastlog.de> | 2017-06-01 20:40:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-01 20:40:21 +0200 |
commit | f30dd71a388b327102a8bbc628aed1b04488e44d (patch) | |
tree | bd64e69af0686d62f0c2b3eca6b67bc6552624ab /pkgs/development | |
parent | 24ea567fb499df8be2023cd0b6ee93c634abf1fc (diff) |
go-modules/generic: add missing PATHs to GOPATH when using nix-shell (#26176)
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/go-modules/generic/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/go-modules/generic/default.nix b/pkgs/development/go-modules/generic/default.nix index b54f07fb0047..c2e4b39472c4 100644 --- a/pkgs/development/go-modules/generic/default.nix +++ b/pkgs/development/go-modules/generic/default.nix @@ -198,7 +198,7 @@ go.stdenv.mkDerivation ( ln -s "${dep.src}" "$d/src/${dep.goPackagePath}" '' ) goPath) + '' - export GOPATH="$d:$GOPATH" + export GOPATH=${lib.concatStringsSep ":" ( ["$d"] ++ ["$GOPATH"] ++ ["$PWD"] ++ extraSrcPaths)} ''; disallowedReferences = lib.optional (!allowGoReference) go |