diff options
author | Leo Nikkilä <hello@lnikki.la> | 2024-08-18 21:23:51 +0100 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-08-25 20:46:46 +0100 |
commit | 26df8fe10a3e9c35ae08cbb159a568c6a9ec1a56 (patch) | |
tree | 73a87743fc9222f1347634475be8a73a3b570d18 /gnu/packages/golang-web.scm | |
parent | 62d7440b26d0af727e98fe3b11bdcce120ff5a19 (diff) | |
download | guix-26df8fe10a3e9c35ae08cbb159a568c6a9ec1a56.tar.gz guix-26df8fe10a3e9c35ae08cbb159a568c6a9ec1a56.zip |
gnu: Add go-github-com-opentracing-contrib-go-stdlib.
* gnu/packages/golang-web.scm (go-github-com-opentracing-contrib-go-stdlib):
New variable.
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Change-Id: I29ccd97ccd3618b845b161ee6bf7d4d09fe1b82c
Diffstat (limited to 'gnu/packages/golang-web.scm')
-rw-r--r-- | gnu/packages/golang-web.scm | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 240b622e35..eb15128a52 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -2631,6 +2631,41 @@ multistream-select protocol. The protocol is defined at which produce colorized output using github.com/fatih/color.") (license license:expat))) +(define-public go-github-com-opentracing-contrib-go-stdlib + (package + (name "go-github-com-opentracing-contrib-go-stdlib") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/opentracing-contrib/go-stdlib") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1ssnfhbpljxy2v3nsw9aqmh7xlky49dpfwj275aj0b576w46ys6m")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/opentracing-contrib/go-stdlib" + #:phases + #~(modify-phases %standard-phases + ;; XXX: Workaround for go-build-system's lack of Go modules support. + (delete 'build) + (replace 'check + (lambda* (#:key tests? import-path #:allow-other-keys) + (when tests? + (with-directory-excursion (string-append "src/" import-path) + (invoke "go" "test" "-v" "./...")))))))) + (propagated-inputs + (list go-github-com-opentracing-opentracing-go)) + (home-page "https://github.com/opentracing-contrib/go-stdlib") + (synopsis "OpenTracing instrumentation for packages in the Golang stdlib") + (description + "This package provides an OpenTracing instrumentation for @code{net/http} +standard library.") + (license license:asl2.0))) + (define-public go-github-com-opentracing-opentracing-go (package (name "go-github-com-opentracing-opentracing-go") |