gnu: Add go-github-com-mr-tron-base58.

* gnu/packages/golang.scm (go-github-com-mr-tron-base58): New variable.
This commit is contained in:
Pierre Neidhardt 2018-10-24 11:41:10 +02:00
parent 71f3680499
commit 15272a5053
No known key found for this signature in database
GPG Key ID: 9BDCF497A4BBCC7F
1 changed files with 27 additions and 0 deletions

View File

@ -2762,3 +2762,30 @@ Architecture Processors\" by J. Guilford et al.")
(synopsis "Various cryptographic utilities used by IPFS")
(description "Various cryptographic utilities used by IPFS")
(license license:expat))))
(define-public go-github-com-mr-tron-base58
(let ((commit "d724c80ecac7b49e4e562d58b2b4f4ee4ed8c312")
(revision "0"))
(package
(name "go-github-com-mr-tron-base58")
(version (git-version "1.1.0" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/mr-tron/base58.git")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32
"12qhgnn9wf3c1ang16r4i778whk4wsrj7d90h2xgmz4fi1469rqa"))))
(build-system go-build-system)
(arguments
`(#:unpack-path "github.com/mr-tron/base58"
#:import-path "github.com/mr-tron/base58/base58"))
(home-page "https://github.com/mr-tron/base58")
(synopsis "Fast implementation of base58 encoding on Golang")
(description "Fast implementation of base58 encoding on Golang. A
trivial @command{big.Int} encoding benchmark results in 6 times faster
encoding and 8 times faster decoding.")
(license license:expat))))