From eef9ae4dbf98dfa1b667a2ccb455d7beae1a3b58 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 12 Apr 2024 12:38:51 +0100 Subject: gnu: Add go-github-com-gxed-hashland. * gnu/packages/golang-crypto.scm (go-github-com-gxed-hashland): New variable. Change-Id: I260901efb4d8062d5a4ce24672156b70e64814a5 --- gnu/packages/golang-crypto.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index 3b95965f6b..4f90ab4242 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -497,6 +497,39 @@ RSA, RSA-PSS, and ECDSA, though hooks are present for adding your own.") #:go go-1.18 #:import-path "github.com/golang-jwt/jwt/v5")))) +;; It's not public for purpose, as it contains a lot of golang modules which +;; may be inherited from the single source, but the package itself does not +;; have to be installed directly or linked to other packages.. +(define go-github-com-gxed-hashland + (package + (name "go-github-com-gxed-hashland") + (version "0.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gxed/hashland") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1b921dh9i6zw7y8jfzwvrmdbhnwid12a5z1zjawslfq2vvsajwmm")))) + (build-system go-build-system) + ;; Source-only package. + (arguments + (list + #:tests? #f + #:import-path "github.com/gxed/hashland" + #:phases + #~(modify-phases %standard-phases (delete 'build)))) + (home-page "https://github.com/gxed/hashland") + (synopsis "Collection of hash functions") + (description + "This package provides a source of Hashland - a collection of hash +functions and functionality to test them. It aggregates various Golang +libraries.") + (license license:expat))) + +;; TODO: Inherit from the go-github-com-gxed-hashland (define-public go-github-com-gxed-hashland-keccakpg (let ((commit "d9f6b97f8db22dd1e090fd0bbbe98f09cc7dd0a8") (revision "0")) -- cgit v1.2.3