1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-16 03:50:45 +02:00
guix/gnu/packages/prometheus.scm
Sharlatan Hellseher e331cfa3e6
gnu: Add go-github-com-mwitkow-go-conntrack.
* gnu/packages/prometheus.scm (go-github-com-mwitkow-go-conntrack): New variable.

Change-Id: I874b96a61ee116fee435e3817d84802fa48eacfe
2024-07-25 21:01:01 +01:00

125 lines
4.3 KiB
Scheme
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2018, 2019, 2020 Leo Famulari <leo@famulari.name>
;;; Copyright © 2024 Jesse Eisses <jesse@eisses.email>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (gnu packages prometheus)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix build-system go)
#:use-module (guix gexp)
#:use-module (guix git-download)
#:use-module (guix packages)
#:use-module (gnu packages)
#: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:
;;;
;;; Libraries and commands related to, or provided by Prometheus project
;;; <https://prometheus.io>.
;;;
;;; Please: Try to add new module packages in alphabetic order.
;;;
;;; Code:
;;;
;;; 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
(package
(name "go-github-com-prometheus-client-model")
(version "0.6.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/prometheus/client_model")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0g1q2szzwp4rwkvayi2mnq2nwj6hj4ja7j43vwyi1iaz6d9z505c"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/prometheus/client_model"
#:tests? #f
#:phases
#~(modify-phases %standard-phases
;; Source-only package
(delete 'build))))
(propagated-inputs
(list go-github-com-golang-protobuf))
(home-page "https://github.com/prometheus/client_model")
(synopsis "Data model artifacts for Prometheus")
(description
"This package provides data model artifacts for Prometheus.")
(license license:asl2.0)))
;;;
;;; Executables:
;;;
;;;
;;; Avoid adding new packages to the end of this file. To reduce the chances
;;; of a merge conflict, place them above in alphabetic order.
;;;