Loading pkgs/by-name/go/gokapi/go-1.24.patch 0 → 100644 +13 −0 Original line number Diff line number Diff line diff --git a/build/go-generate/copyStaticFiles.go b/build/go-generate/copyStaticFiles.go index 9f8a049..de21bdd 100644 --- a/build/go-generate/copyStaticFiles.go +++ b/build/go-generate/copyStaticFiles.go @@ -10,7 +10,7 @@ import ( ) func main() { - copyFile(build.Default.GOROOT+"/misc/wasm/wasm_exec.js", "../../internal/webserver/web/static/js/wasm_exec.js") + copyFile(build.Default.GOROOT+"/lib/wasm/wasm_exec.js", "../../internal/webserver/web/static/js/wasm_exec.js") copyFile("../../go.mod", "../../build/go.mod") copyFile("../../openapi.json", "../../internal/webserver/web/static/apidocumentation/openapi.json") } pkgs/by-name/go/gokapi/package.nix +4 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,10 @@ buildGoModule rec { vendorHash = "sha256-9GRAlgng+yq7q0VQz374jIOCjeDIIDD631BglM/FsQQ="; patches = [ ./go-1.24.patch ]; # This is the go generate is ran in the upstream builder, but we have to run the components separately for things to work. preBuild = '' cd ./cmd/gokapi/ Loading Loading
pkgs/by-name/go/gokapi/go-1.24.patch 0 → 100644 +13 −0 Original line number Diff line number Diff line diff --git a/build/go-generate/copyStaticFiles.go b/build/go-generate/copyStaticFiles.go index 9f8a049..de21bdd 100644 --- a/build/go-generate/copyStaticFiles.go +++ b/build/go-generate/copyStaticFiles.go @@ -10,7 +10,7 @@ import ( ) func main() { - copyFile(build.Default.GOROOT+"/misc/wasm/wasm_exec.js", "../../internal/webserver/web/static/js/wasm_exec.js") + copyFile(build.Default.GOROOT+"/lib/wasm/wasm_exec.js", "../../internal/webserver/web/static/js/wasm_exec.js") copyFile("../../go.mod", "../../build/go.mod") copyFile("../../openapi.json", "../../internal/webserver/web/static/apidocumentation/openapi.json") }
pkgs/by-name/go/gokapi/package.nix +4 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,10 @@ buildGoModule rec { vendorHash = "sha256-9GRAlgng+yq7q0VQz374jIOCjeDIIDD631BglM/FsQQ="; patches = [ ./go-1.24.patch ]; # This is the go generate is ran in the upstream builder, but we have to run the components separately for things to work. preBuild = '' cd ./cmd/gokapi/ Loading