feat(buildGo): Expose Go import path for packages

This commit is contained in:
Vincent Ambo 2019-12-12 03:14:27 +00:00 committed by Vincent Ambo
parent 57f37743c2
commit e60dfabc21

View file

@ -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) {