diff options
author | Vincent Ambo <tazjin@google.com> | 2019-12-12T03·14+0000 |
---|---|---|
committer | Vincent Ambo <mail@tazj.in> | 2019-12-13T00·39+0000 |
commit | e60dfabc2122bbc29fc9832d1562826c08772442 (patch) | |
tree | 49f3ac39c886bc7d959ddb1cdacfab38114ee057 /buildGo.nix | |
parent | 57f37743c2e295b0404023587b92c517e5731a30 (diff) |
feat(buildGo): Expose Go import path for packages
Diffstat (limited to 'buildGo.nix')
-rw-r--r-- | buildGo.nix | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |