diff options
| author | Arthur Rodrigues <arthurhdrodrigues@proton.me> | 2026-01-27 22:33:26 -0300 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-02-11 22:21:30 +0000 |
| commit | 13b8bc09a31ed2fb9ed5c82ce0c984bc77fcea7f (patch) | |
| tree | a8eb5ddfcee8318f219ce802816cec68bd444f88 /gnu | |
| parent | 0489db737d8bc0297a949efa950a05c6146b7f2d (diff) | |
gnu: Add go-github-com-cloudflare-redoctober.
* gnu/packages/golang-crypto.scm (go-github-com-cloudflare-redoctober): New variable.
Change-Id: Ibe13fbc7fc9776a3530d38534a6566e3576e7fe0
Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/golang-crypto.scm | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index 844e8d37a9..d36186c3e5 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -64,6 +64,7 @@ #:use-module (gnu packages golang-xyz) #:use-module (gnu packages password-utils) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages prometheus) #:use-module (gnu packages security-token) #:use-module (gnu packages specifications) #:use-module (gnu packages tls)) @@ -599,6 +600,59 @@ cryptographic algorithms targeting Post-Quantum (PQ) and Elliptic Curve Cryptography (ECC).") (license license:bsd-3))) +(define-public go-github-com-cloudflare-redoctober + (package + (name "go-github-com-cloudflare-redoctober") + (version "0.0.0-20241112165158-ce2ad370627b") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cloudflare/redoctober") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0mlmm68x0y4m6dzris6ggkhzfxpd99df4syj3zc6350q3fxi0kv9")) + (snippet + #~(begin (use-modules (guix build utils)) + (delete-file-recursively "vendor"))))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/cloudflare/redoctober" + #:test-flags #~(list "-vet=off") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-imports + (lambda* (#:key tests? import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (substitute* "server/server.go" + (("github.com/coreos/go-systemd/activation") + "github.com/coreos/go-systemd/v22/activation"))))) + (add-before 'check 'fix-bin-path-for-tests + (lambda* (#:key tests? import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (substitute* "redoctober_test.go" + (("\\./redoctober") + (string-append #$output "/bin/redoctober"))))))))) + (propagated-inputs + (list go-github-com-coreos-go-systemd-v22 + ;; Reporting to Sentry is not enabled by default in + ;; <report/report.go>. + go-github-com-getsentry-sentry-go + go-github-com-prometheus-client-golang + go-golang-org-x-crypto)) + (home-page "https://github.com/cloudflare/redoctober") + (synopsis "Cloudflare Red October key management support for Golang") + (description + "This package provides an implementation of the Red October keyserver +protocol for Golang. It uses the +@url{https://en.wikipedia.org/wiki/Two-person_rule, Two-Person Rule} to +protect sensitive data, which means it supports generating, distributing, and +recovering keys among multiple parties with configurable quorum requirements. +The package include Go source library and @code{redoctober} command.") + (license license:bsd-2))) + (define-public go-github-com-cloudwego-base64x (package (name "go-github-com-cloudwego-base64x") |
