summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2026-02-06 15:39:25 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-02-07 07:55:53 +0000
commitfa9050683b3e86fdccb831ebe1ceadf66675fa00 (patch)
tree4d2e491b728c780f6e05ef9c0881edd8d66a7728 /gnu/packages
parent4e1e510f3e2c30f0a88c310040da1042a2aaa6b1 (diff)
gnu: Add go-github-com-theupdateframework-go-tuf-v2.
* gnu/packages/golang-xyz.scm (go-github-com-theupdateframework-go-tuf-v2): New variable. Change-Id: I7552141dba1f2216cc078838e6540d3a19d4d7d8
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/golang-xyz.scm41
1 files changed, 41 insertions, 0 deletions
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 8f49d2b908..d9abd2fb9d 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -22971,6 +22971,47 @@ for securing software update systems. It provides tools for creating and
managing TUF repositories and clients for securely downloading updates.")
(license license:bsd-3)))
+(define-public go-github-com-theupdateframework-go-tuf-v2
+ (package
+ (inherit go-github-com-theupdateframework-go-tuf)
+ (name "go-github-com-theupdateframework-go-tuf-v2")
+ (version "2.4.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/theupdateframework/go-tuf")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1213y7g9vdbzgymfz03fgmnvrj6r00yfpdvz0qqfsaz2nfj0pmdz"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:go go-1.25
+ #:skip-build? #t
+ #:import-path "github.com/theupdateframework/go-tuf/v2"
+ #:test-flags
+ #~(list "-failfast"
+ "-skip" (string-join
+ (list "TestDownLoadFile"
+ "TestDownloadFile_NoHTTPClientSet")
+ "|"))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'pre-check
+ (lambda _
+ ;; Taken from project's CI.
+ (setenv "GODEBUG" "rsa1024min=0"))))))
+ (native-inputs
+ (list go-github-com-spf13-cobra
+ go-github-com-stretchr-testify))
+ (propagated-inputs
+ (list go-github-com-cenkalti-backoff-v5
+ go-github-com-go-logr-stdr
+ go-github-com-secure-systems-lab-go-securesystemslib
+ go-github-com-sigstore-sigstore))))
+
(define-public go-github-com-tidwall-cities
(package
(name "go-github-com-tidwall-cities")