~ruther/guix-local

4976208fa8aa4b5b63f51285ca5fff841a20bdba — Timo Wilken 3 years ago a61b08f
gnu: Move golang dependencies to (gnu packages golang).

These packages are needed by syncthing and the new restic-rest-server package,
so put them in (gnu packages golang) instead.

* gnu/packages/syncthing.scm (go-github-com-prometheus-common,
go-github-com-prometheus-procfs, go-github-com-prometheus-client-golang):
Move variables ...
* gnu/packages/golang.scm (go-github-com-prometheus-common,
go-github-com-prometheus-procfs, go-github-com-prometheus-client-golang):
... to here.

Signed-off-by: Leo Famulari <leo@famulari.name>
2 files changed, 90 insertions(+), 90 deletions(-)

M gnu/packages/golang.scm
M gnu/packages/syncthing.scm
M gnu/packages/golang.scm => gnu/packages/golang.scm +90 -0
@@ 9497,6 9497,96 @@ RFC-5802 and RFC-7677.")
bindings for the D-Bus message bus system.")
    (license license:bsd-2)))

(define-public go-github-com-prometheus-common
  (package
    (name "go-github-com-prometheus-common")
    (version "0.4.1")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                    (url "https://github.com/prometheus/common")
                    (commit (string-append "v" version))))
              (file-name (git-file-name name version))
              (sha256
               (base32
                "0sf4sjdckblz1hqdfvripk3zyp8xq89w7q75kbsyg4c078af896s"))))
    (build-system go-build-system)
    (arguments
     '(#:import-path "github.com/prometheus/common"
       #:tests? #f
       #:phases
       (modify-phases %standard-phases
         ;; Source-only package
         (delete 'build))))
    (propagated-inputs
     (list go-github-com-golang-protobuf-proto
           go-github-com-matttproud-golang-protobuf-extensions-pbutil
           go-github-com-prometheus-client-model))
    (synopsis "Prometheus metrics")
    (description "This package provides tools for reading and writing
Prometheus metrics.")
    (home-page "https://github.com/prometheus/common")
    (license license:asl2.0)))

(define-public go-github-com-prometheus-procfs
  (package
    (name "go-github-com-prometheus-procfs")
    (version "0.0.4")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                    (url "https://github.com/prometheus/procfs")
                    (commit (string-append "v" version))))
              (file-name (git-file-name name version))
              (sha256
               (base32
                "1z5jq5rjala0a0di4nwk1rai0z9f73qwqj6mgcbpjbg2qknlb544"))))
    (build-system go-build-system)
    (arguments
     '(#:import-path "github.com/prometheus/procfs"
       ;; The tests require Go modules, which are not yet supported in Guix's
       ;; Go build system.
       #:tests? #f))
    (synopsis "Go library for reading @file{/proc}")
    (description "The @code{procfs} Go package provides functions to retrieve
system, kernel, and process metrics from the @file{/proc} pseudo file system.")
    (home-page "https://github.com/prometheus/procfs")
    (license license:asl2.0)))

(define-public go-github-com-prometheus-client-golang
  (package
    (name "go-github-com-prometheus-client-golang")
    (version "1.2.1")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                    (url "https://github.com/prometheus/client_golang")
                    (commit (string-append "v" version))))
              (file-name (git-file-name name version))
              (sha256
               (base32
                "0zs49psk23n9z8wrl02d5vib5wclpym8kaxcy6n5pk696i419065"))))
    (build-system go-build-system)
    (arguments
     '(#:tests? #f
       #:import-path "github.com/prometheus/client_golang"
       #:phases
       (modify-phases %standard-phases
         ;; Source-only package
         (delete 'build))))
    (propagated-inputs
     (list go-github-com-beorn7-perks-quantile
           go-github-com-golang-protobuf-proto
           go-github-com-prometheus-client-model
           go-github-com-prometheus-common
           go-github-com-prometheus-procfs
           go-github-com-cespare-xxhash))
    (synopsis "HTTP server and client tools for Prometheus")
    (description "This package @code{promhttp} provides HTTP client and
server tools for Prometheus metrics.")
    (home-page "https://github.com/prometheus/client_golang")
    (license license:asl2.0)))

(define-public go-github-com-zalando-go-keyring
  (package
    (name "go-github-com-zalando-go-keyring")

M gnu/packages/syncthing.scm => gnu/packages/syncthing.scm +0 -90
@@ 877,96 877,6 @@ message streaming.")
      (home-page "https://github.com/matttproud/golang_protobuf_extensions")
      (license asl2.0))))

(define-public go-github-com-prometheus-common
    (package
      (name "go-github-com-prometheus-common")
      (version "0.4.1")
      (source (origin
                (method git-fetch)
                (uri (git-reference
                       (url "https://github.com/prometheus/common")
                       (commit (string-append "v" version))))
                (file-name (git-file-name name version))
                (sha256
                 (base32
                  "0sf4sjdckblz1hqdfvripk3zyp8xq89w7q75kbsyg4c078af896s"))))
      (build-system go-build-system)
      (arguments
       '(#:import-path "github.com/prometheus/common"
         #:tests? #f
         #:phases
         (modify-phases %standard-phases
           ;; Source-only package
           (delete 'build))))
      (propagated-inputs
       (list go-github-com-golang-protobuf-proto
             go-github-com-matttproud-golang-protobuf-extensions-pbutil
             go-github-com-prometheus-client-model))
      (synopsis "Prometheus metrics")
      (description "This package provides tools for reading and writing
Prometheus metrics.")
      (home-page "https://github.com/prometheus/common")
      (license asl2.0)))

(define-public go-github-com-prometheus-procfs
    (package
      (name "go-github-com-prometheus-procfs")
      (version "0.0.4")
      (source (origin
                (method git-fetch)
                (uri (git-reference
                       (url "https://github.com/prometheus/procfs")
                       (commit (string-append "v" version))))
                (file-name (git-file-name name version))
                (sha256
                 (base32
                  "1z5jq5rjala0a0di4nwk1rai0z9f73qwqj6mgcbpjbg2qknlb544"))))
      (build-system go-build-system)
      (arguments
       '(#:import-path "github.com/prometheus/procfs"
         ;; The tests require Go modules, which are not yet supported in Guix's
         ;; Go build system.
         #:tests? #f))
      (synopsis "Go library for reading @file{/proc}")
      (description "The @code{procfs} Go package provides functions to retrieve
system, kernel, and process metrics from the @file{/proc} pseudo file system.")
      (home-page "https://github.com/prometheus/procfs")
      (license asl2.0)))

(define-public go-github-com-prometheus-client-golang
    (package
      (name "go-github-com-prometheus-client-golang")
      (version "1.2.1")
      (source (origin
                (method git-fetch)
                (uri (git-reference
                       (url "https://github.com/prometheus/client_golang")
                       (commit (string-append "v" version))))
                (file-name (git-file-name name version))
                (sha256
                 (base32
                  "0zs49psk23n9z8wrl02d5vib5wclpym8kaxcy6n5pk696i419065"))))
      (build-system go-build-system)
      (arguments
       '(#:tests? #f
         #:import-path "github.com/prometheus/client_golang"
         #:phases
         (modify-phases %standard-phases
           ;; Source-only package
           (delete 'build))))
      (propagated-inputs
       (list go-github-com-beorn7-perks-quantile
             go-github-com-golang-protobuf-proto
             go-github-com-prometheus-client-model
             go-github-com-prometheus-common
             go-github-com-prometheus-procfs
             go-github-com-cespare-xxhash))
      (synopsis "HTTP server and client tools for Prometheus")
      (description "This package @code{promhttp} provides HTTP client and
server tools for Prometheus metrics.")
      (home-page "https://github.com/prometheus/client_golang")
      (license asl2.0)))

(define-public go-github-com-go-asn1-ber-asn1-ber
  (package
    (name "go-github-com-go-asn1-ber-asn1-ber")