summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-10-22 20:22:05 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-10-30 17:11:27 +0000
commit14eb8d5a6c44f254419956917c8800a92c1fb8d6 (patch)
tree381cf4923d5881f8f0dd705db06053c705084f83
parent17c29b01595fc61d92589d1a6c4c308820fcaceb (diff)
gnu: Add go-github-com-containerd-protobuild.
* gnu/packages/golang-web.scm (go-github-com-containerd-protobuild): New variable. Change-Id: Ia867e3ddc4f8f0626e60667e1a46c165b13c877b Reviewed-by: Arthur Rodrigues <arthurhdrodrigues@proton.me>
-rw-r--r--gnu/packages/golang-web.scm38
1 files changed, 38 insertions, 0 deletions
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 8e3b4866a51..52197d454db 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -2473,6 +2473,44 @@ collect and export tracing data to opentelemetry, these spans should show up
as part of the collected traces.")
(license license:asl2.0)))
+(define-public go-github-com-containerd-protobuild
+ (package
+ (name "go-github-com-containerd-protobuild")
+ (version "0.3.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/containerd/protobuild")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1f44q37qlzh1fkqx4fvhw00fdy191j0253lpjzw5icakjxir3dkp"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/containerd/protobuild"
+ ;; rewrite_test.go:45: expected "//hello\npackage main\n\nfunc GetCPU()
+ ;; {}\n", but got "// hello\npackage main\n\nfunc GetCPU() {}\n"
+ #:test-flags #~(list "-skip" "TestRewrite/Simple")))
+ (propagated-inputs
+ (list go-github-com-golang-protobuf
+ go-github-com-pelletier-go-toml
+ go-golang-org-x-tools
+ go-google-golang-org-grpc
+ go-google-golang-org-protobuf))
+ (home-page "https://github.com/containerd/protobuild")
+ (synopsis "Protobufs builder")
+ (description
+ "@code{protobuild} works by scanning the Golang package in a project and
+emitting correct protoc commands, configured with the plugins, packages and
+details of your choice. The main benefit is that it makes it much easier to
+consume external types from vendored projects. By integrating the protoc
+include paths with Go's vendoring and GOPATH, builds are much easier to keep
+consistent across a project. This package provides a source library and built
+command @command{protobuild}.")
+ (license license:asl2.0)))
+
(define-public go-github-com-containerd-ttrpc
(package
(name "go-github-com-containerd-ttrpc")