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.nix12
1 files changed, 7 insertions, 5 deletions
diff --git a/nix/buildGo/default.nix b/nix/buildGo/default.nix
index 0126a93d1621..92951b3cb213 100644
--- a/nix/buildGo/default.nix
+++ b/nix/buildGo/default.nix
@@ -90,11 +90,13 @@ let
         ${asmBuild}
         ${go}/bin/go tool compile -pack ${asmLink} -o $out/${path}.a -trimpath=$PWD -trimpath=${go} -p ${path} ${includeSources uniqueDeps} ${spaceOut srcs}
         ${asmPack}
-      '') // {
-        inherit gopkg;
-        goDeps = uniqueDeps;
-        goImportPath = path;
-      };
+      '').overrideAttrs (_: {
+        passthru = {
+          inherit gopkg;
+          goDeps = uniqueDeps;
+          goImportPath = path;
+        };
+      });
     in
     gopkg;