gnu: Add go-github-com-mwitkow-go-conntrack.

* gnu/packages/prometheus.scm (go-github-com-mwitkow-go-conntrack): New variable.

Change-Id: I874b96a61ee116fee435e3817d84802fa48eacfe
This commit is contained in:
Sharlatan Hellseher 2024-07-24 16:37:03 +01:00
parent c8e9ee9c47
commit e331cfa3e6
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -24,7 +24,11 @@ (define-module (gnu packages prometheus)
#:use-module (guix git-download) #:use-module (guix git-download)
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (gnu packages) #:use-module (gnu packages)
#:use-module (gnu packages golang-build)) #:use-module (gnu packages golang)
#:use-module (gnu packages golang-build)
#:use-module (gnu packages golang-check)
#:use-module (gnu packages golang-web)
#:use-module (gnu packages golang-xyz))
;;; Commentary: ;;; Commentary:
;;; ;;;
@ -39,6 +43,48 @@ (define-module (gnu packages prometheus)
;;; Libraries: ;;; Libraries:
;;; ;;;
(define-public go-github-com-mwitkow-go-conntrack
(package
(name "go-github-com-mwitkow-go-conntrack")
(version "0.0.0-20190716064945-2f068394615f")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/mwitkow/go-conntrack")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "0ymjmy12ks7smgwmrwsa5kf07d9w5kpk1dn650azlzr61b561aw7"))))
(build-system go-build-system)
(arguments
(list
#:tests? #f
#:import-path "github.com/mwitkow/go-conntrack"
#:phases
#~(modify-phases %standard-phases
;; Breaking cycle:
;; go-github-com-prometheus-common ->
;; go-github-com-prometheus-client-golang ->
;; go-github-com-mwitkow-go-conntrack ->
;; go-github-com-prometheus-common
(delete 'build))))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-jpillora-backoff
go-github-com-munnerz-goautoneg
;; go-github-com-prometheus-client-golang
go-golang-org-x-net))
(home-page "https://github.com/mwitkow/go-conntrack")
(synopsis "Go middleware for @code{net.Conn} tracking")
(description
"@url{https://prometheus.io/,Prometheus} monitoring and
@url{https://godoc.org/golang.org/x/net/trace#@code{EventLog,(code}
x/net/trace)} tracing wrappers @code{net.Conn}, both inbound
(@@code{net.Listener}) and outbound (@@code{net.Dialer}).")
(license license:asl2.0)))
(define-public go-github-com-prometheus-client-model (define-public go-github-com-prometheus-client-model
(package (package
(name "go-github-com-prometheus-client-model") (name "go-github-com-prometheus-client-model")