From 14eb8d5a6c44f254419956917c8800a92c1fb8d6 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 22 Oct 2025 20:22:05 +0100 Subject: [PATCH] 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 --- gnu/packages/golang-web.scm | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 8e3b4866a51e484e37c0482f2b7f278670b692ce..52197d454dbe420e4185504ff2e579491d40998c 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")