summaryrefslogtreecommitdiffstats
path: root/pkgs/development/go-modules
diff options
context:
space:
mode:
authorDanylo Hlynskyi <abcz2.uprola@gmail.com>2019-12-16 00:58:16 +0200
committerGitHub <noreply@github.com>2019-12-16 00:58:16 +0200
commitdebca548f928c23d4dcb8d66098ceba693f14982 (patch)
treeaa36ceddc0327b5d5fa217dff6d71190da26e3ef /pkgs/development/go-modules
parent39b20f0986d483ac5a7a21e632b5dbf81310f8c5 (diff)
dolt: init at 0.12.0 (#75693)
* dolt: init at 0.12.0 * Update pkgs/servers/sql/dolt/default.nix Co-Authored-By: robert seaton <robbpseaton@gmail.com> * fix eval * Update pkgs/servers/sql/dolt/default.nix Co-Authored-By: Wael Nasreddine <wael.nasreddine@gmail.com> * update Go docs as well
Diffstat (limited to 'pkgs/development/go-modules')
-rw-r--r--pkgs/development/go-modules/generic/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/go-modules/generic/default.nix b/pkgs/development/go-modules/generic/default.nix
index 55eaca514da8..b3c583da51e4 100644
--- a/pkgs/development/go-modules/generic/default.nix
+++ b/pkgs/development/go-modules/generic/default.nix
@@ -10,6 +10,9 @@
# A function to override the go-modules derivation
, overrideModAttrs ? (_oldAttrs : {})
+# path to go.mod and go.sum directory
+, modRoot ? "./"
+
# modSha256 is the sha256 of the vendored dependencies
, modSha256
@@ -58,7 +61,7 @@ let
export GOCACHE=$TMPDIR/go-cache
export GOPATH="$TMPDIR/go"
mkdir -p "''${GOPATH}/pkg/mod/cache/download"
-
+ cd "${modRoot}"
runHook postConfigure
'';
@@ -101,6 +104,8 @@ let
export GOSUMDB=off
export GOPROXY=file://${go-modules}
+ cd "$modRoot"
+
runHook postConfigure
'';