mirror of
https://github.com/tweag/gomod2nix.git
synced 2024-11-22 21:25:00 +00:00
Enable Cgo by default
To be in line with the behaviour of buildGoModule since https://github.com/NixOS/nixpkgs/pull/177594.
This commit is contained in:
parent
055777bf88
commit
5149c67e6e
1 changed files with 3 additions and 0 deletions
|
@ -172,6 +172,8 @@ let
|
|||
dontConfigure = true;
|
||||
dontInstall = true;
|
||||
|
||||
CGO_ENABLED = attrs.CGO_ENABLED or go.CGO_ENABLED;
|
||||
|
||||
propagatedBuildInputs = [ go ];
|
||||
|
||||
GO_NO_VENDOR_CHECKS = "1";
|
||||
|
@ -253,6 +255,7 @@ let
|
|||
inherit (go) GOOS GOARCH;
|
||||
|
||||
GO_NO_VENDOR_CHECKS = "1";
|
||||
CGO_ENABLED = attrs.CGO_ENABLED or go.CGO_ENABLED;
|
||||
|
||||
GO111MODULE = "on";
|
||||
GOFLAGS = [ "-mod=vendor" ] ++ lib.optionals (!allowGoReference) [ "-trimpath" ];
|
||||
|
|
Loading…
Reference in a new issue