diff options
Diffstat (limited to 'nix')
-rw-r--r-- | nix/buildGo/default.nix | 4 | ||||
-rw-r--r-- | nix/buildGo/external/default.nix | 2 |
2 files changed, 3 insertions, 3 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. diff --git a/nix/buildGo/external/default.nix b/nix/buildGo/external/default.nix index 48f678688eec..6f31fbe5caeb 100644 --- a/nix/buildGo/external/default.nix +++ b/nix/buildGo/external/default.nix @@ -83,7 +83,7 @@ in { src, path, deps ? [] }: let depMap = listToAttrs (map (d: { name = d.goImportPath; value = d; - }) deps); + }) (map (d: d.gopkg) deps)); name = pathToName path; analysisOutput = runCommand "${name}-structure.json" {} '' |