mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-17 04:20:44 +02:00
gnu: Add go-github-com-shopspring-decimal.
* gnu/packages/golang-maths.scm (go-github-com-shopspring-decimal): New variable. Change-Id: I52ba58d05be9f631e5c53ccf7c30a977d7fe66b3
This commit is contained in:
parent
ada945251c
commit
bcad85a80e
1 changed files with 31 additions and 0 deletions
|
@ -57,6 +57,37 @@
|
||||||
"This package provides a statistical library for Golang.")
|
"This package provides a statistical library for Golang.")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
|
(define-public go-github-com-shopspring-decimal
|
||||||
|
(package
|
||||||
|
(name "go-github-com-shopspring-decimal")
|
||||||
|
(version "1.4.0")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/shopspring/decimal")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32 "1p1iz0ybsjvc8k3w6lf92drs51fgrcbz0ib1p4ihp3gmdq5rnzjk"))))
|
||||||
|
(build-system go-build-system)
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:import-path "github.com/shopspring/decimal"))
|
||||||
|
(home-page "https://github.com/shopspring/decimal")
|
||||||
|
(synopsis "Arbitrary-precision fixed-point decimal numbers in Golang")
|
||||||
|
(description
|
||||||
|
"Package decimal implements an arbitrary precision fixed-point decimal.
|
||||||
|
Features:
|
||||||
|
@itemize
|
||||||
|
@item the zero-value is 0, and is safe to use without initialization
|
||||||
|
@item addition, subtraction, multiplication with no loss of precision
|
||||||
|
@item division with specified precision
|
||||||
|
@item database/sql serialization/deserialization
|
||||||
|
@item JSON and XML serialization/deserialization
|
||||||
|
@end itemize")
|
||||||
|
(license license:expat)))
|
||||||
|
|
||||||
;;;
|
;;;
|
||||||
;;; Executables:
|
;;; Executables:
|
||||||
;;;
|
;;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue