diff --git a/nix/buildGo/default.nix b/nix/buildGo/default.nix index 0126a93d1..92951b3cb 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;