From 723b1b9416bf6726fe17f552fa597d424e335e61 Mon Sep 17 00:00:00 2001 From: Arthur Rodrigues Date: Sun, 17 Aug 2025 18:28:54 -0300 Subject: [PATCH] gnu: Add go-github-com-veraison-go-cose. * gnu/packages/golang-crypto.scm (go-github-com-veraison-go-cose): New variable. Change-Id: I509367fc19e8e99eed1061eb8e6448ea4b8f1480 Modified-by: Sharlatan Hellseher Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-crypto.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index 21aede3238ee7ea15ff7c7c73e2be4f5a3bff576..813c83257e2f6cf00d610afc645ae21ffcadb481 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -28,6 +28,7 @@ ;;; Copyright © 2024 Troy Figiel ;;; Copyright © 2025 Roman Scherer ;;; Copyright © 2025 Sharlatan Hellseher +;;; Copyright © 2025 Arthur Rodrigues ;;; ;;; This file is part of GNU Guix. ;;; @@ -2513,6 +2514,38 @@ support the streaming mode required by Go's standard Hash interface.") (list #:import-path "github.com/twpayne/go-pinentry/v4")))) +(define-public go-github-com-veraison-go-cose + ;; XXX: The latest commits provides test fixtures, see: + ;; . Revert back to git tag + ;; when a fresh release is available. + (let ((commit "a633822d54e270749baecce653c5ba4f07ccbb46") + (revision "0")) + (package + (name "go-github-com-veraison-go-cose") + (version (git-version "1.3.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/veraison/go-cose") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0nni0pv8s6mn1jpk6pxpi464qdji0s0pq587y2mnsa4zkp9pp09z")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/veraison/go-cose")) + (propagated-inputs + (list go-github-com-fxamacker-cbor-v2)) + (home-page "https://github.com/veraison/go-cose") + (synopsis "COSE specification for Go") + (description + "This package provides a Go library for the Concise Binary Object +Representation (CBOR) Object Signing and Encryption +@url{https://datatracker.ietf.org/doc/rfc9052/, (COSE) specification}.") + (license license:mpl2.0)))) + (define-public go-github-com-xanzy-ssh-agent (package (name "go-github-com-xanzy-ssh-agent")