buildGoModule: enable strictDeps

This will improve cross compiling in the long run.
See also https://github.com/NixOS/nixpkgs/pull/82786
This commit is contained in:
Jörg Thalheim 2020-03-17 16:27:27 +00:00
parent 201ac90018
commit 060a9227c2
No known key found for this signature in database
GPG Key ID: 003F2096411B5F92

View File

@ -208,6 +208,8 @@ let
find $out/bin -type f -exec ${removeExpr removeReferences} '{}' + || true find $out/bin -type f -exec ${removeExpr removeReferences} '{}' + || true
''; '';
strictDeps = true;
disallowedReferences = lib.optional (!allowGoReference) go; disallowedReferences = lib.optional (!allowGoReference) go;
passthru = passthru // { inherit go go-modules modSha256; }; passthru = passthru // { inherit go go-modules modSha256; };