Merge pull request #258712 from jmbaur/coredns-fix-cross

coredns: Fix cross-compile
This commit is contained in:
Nick Cao 2023-10-03 10:03:10 -04:00 committed by GitHub
commit dbcae9f958
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@ in buildGoModule rec {
modBuildPhase = ''
for plugin in ${builtins.toString (attrsToPlugins externalPlugins)}; do echo $plugin >> plugin.cfg; done
for src in ${builtins.toString (attrsToSources externalPlugins)}; do go get $src; done
go generate
GOOS= GOARCH= go generate
go mod vendor
'';
@ -46,7 +46,7 @@ in buildGoModule rec {
chmod -R u+w vendor
mv -t . vendor/go.{mod,sum} vendor/plugin.cfg
go generate
GOOS= GOARCH= go generate
'';
postPatch = ''