~ruther/guix-local

512a7b124270bf52e58246df6ad59245d3dcf19d — Sharlatan Hellseher 11 months ago 03a02e0
gnu: Add go-github-com-dgraph-io-badger-v4.

* gnu/packages/golang-xyz.scm (go-github-com-dgraph-io-badger-v4): New variable.

Change-Id: Ib7d4b51c3dc5ab9f11eca92b917175133a61e691
1 files changed, 32 insertions(+), 0 deletions(-)

M gnu/packages/golang-xyz.scm
M gnu/packages/golang-xyz.scm => gnu/packages/golang-xyz.scm +32 -0
@@ 5358,6 5358,38 @@ simultaneously.  It uses @acronym{Multi-Version Concurrency Control, MVCC},
supports concurrent serializable transactions.")
    (license license:asl2.0)))

(define-public go-github-com-dgraph-io-badger-v4
  (package
    (inherit go-github-com-dgraph-io-badger)
    (name "go-github-com-dgraph-io-badger-v4")
    (version "4.5.2")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/dgraph-io/badger")
             (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "0v4c69whypm3k40hrx8bw9rjrcb0swz43v056s0fadqr04j0ncwj"))))
    (arguments
     (list
      #:go go-1.23
      #:tests? #f ; TODO: tests hang, find out why.
      #:import-path "github.com/dgraph-io/badger/v4"))
    (propagated-inputs
     (list go-github-com-cespare-xxhash-v2
           go-github-com-dgraph-io-ristretto-v2
           go-github-com-dustin-go-humanize
           go-github-com-google-flatbuffers
           go-github-com-klauspost-compress
           go-github-com-pkg-errors
           go-github-com-spf13-cobra
           go-go-opencensus-io
           go-golang-org-x-net
           go-golang-org-x-sys
           go-google-golang-org-protobuf))))

(define-public go-github-com-dgraph-io-ristretto
  (package
    (name "go-github-com-dgraph-io-ristretto")