buildGoModule: respect user-specified passthru

Prioritize user-specified passthru arguments over those added by
buildGoModule.
This commit is contained in:
Yueh-Shun Li 2024-07-29 06:45:08 +08:00
parent 018e32bfe0
commit 010277de84

View File

@ -307,7 +307,7 @@ let
disallowedReferences = lib.optional (!allowGoReference) go;
passthru = passthru // { inherit go goModules vendorHash; };
passthru = { inherit go goModules vendorHash; } // passthru;
meta = {
# Add default meta information