fix: build custom caddy

This commit is contained in:
= 2025-01-19 17:56:26 +01:00
parent 9812a631fc
commit e754d926eb
4 changed files with 18 additions and 31 deletions

View file

@ -67,7 +67,6 @@ buildGoModule rec {
];
modBuildPhase = ''
export GOPROXY=https://proxy.golang.org,direct
for module in ${builtins.toString (attrsToModules externalPlugins)}; do
sed -i "/standard/a _ \"$module\"" ./cmd/caddy/main.go
done
@ -75,7 +74,7 @@ buildGoModule rec {
go get $plugin
done
go mod tidy
go generate
go mod vendor
'';
@ -85,11 +84,9 @@ buildGoModule rec {
'';
preBuild = ''
export GOPROXY=https://proxy.golang.org,direct
chmod -R u+w vendor
[ -f vendor/go.mod ] && mv -t . vendor/go.{mod,sum}
go mod tidy
go mod vendor
go generate
for module in ${builtins.toString (attrsToModules externalPlugins)}; do
sed -i "/standard/a _ \"$module\"" ./cmd/caddy/main.go