about summary refs log tree commit diff
path: root/nix/buildGo/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/buildGo/default.nix')
-rw-r--r--nix/buildGo/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nix/buildGo/default.nix b/nix/buildGo/default.nix
index 5346b06ebd73..9999d1423e2e 100644
--- a/nix/buildGo/default.nix
+++ b/nix/buildGo/default.nix
@@ -53,7 +53,7 @@ let
 
   # Build a Go program out of the specified files and dependencies.
   program = { name, srcs, deps ? [], x_defs ? {} }:
-  let uniqueDeps = allDeps deps;
+  let uniqueDeps = allDeps (map (d: d.gopkg) deps);
   in runCommand name {} ''
     ${go}/bin/go tool compile -o ${name}.a -trimpath=$PWD -trimpath=${go} ${includeSources uniqueDeps} ${spaceOut srcs}
     mkdir -p $out/bin
@@ -67,7 +67,7 @@ let
   # needed when downstream packages depend on it.
   package = { name, srcs, deps ? [], path ? name, sfiles ? [] }:
   let
-    uniqueDeps = allDeps deps;
+    uniqueDeps = allDeps (map (d: d.gopkg) deps);
 
     # The build steps below need to be executed conditionally for Go
     # assembly if the analyser detected any *.s files.