From e60dfabc2122bbc29fc9832d1562826c08772442 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 12 Dec 2019 03:14:27 +0000 Subject: feat(buildGo): Expose Go import path for packages --- buildGo.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildGo.nix b/buildGo.nix index b5a6ba2b3a53..c03c30bef1a0 100644 --- a/buildGo.nix +++ b/buildGo.nix @@ -70,7 +70,7 @@ let mkdir -p $out/${path} ${srcList path (map (s: "${s}") srcs)} ${go}/bin/go tool compile -o $out/${path}.a -trimpath=$PWD -trimpath=${go} -p ${path} ${includeSources uniqueDeps} ${spaceOut srcs} - '') // { goDeps = uniqueDeps; }; + '') // { goDeps = uniqueDeps; goImportPath = path; }; # Build a Go library out of the specified protobuf definition. proto = { name, proto, path ? name, extraDeps ? [] }: (makeOverridable package) { -- cgit 1.4.1