feat(nix/buildGo): use gopkg attribute of deps

This removes the need for `map (x: x.gopkg)` in dependency lists.

Change-Id: Ia19e51f14110bf22f5cdbb64fa7ce182e1b34241
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1624
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
edef 2020-08-03 18:42:42 +00:00
parent c3546c5f9c
commit 596e1f7f77
2 changed files with 3 additions and 3 deletions

View file

@ -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" {} ''