unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#68152] [PATCH] gnu: Add "go-github-com-google-btree" and "go-github-com-peterbourgon-diskv"
@ 2023-12-30 18:28 Artyom V. Poptsov
  2024-01-12 22:31 ` bug#68152: Sharlatan Hellseher
  0 siblings, 1 reply; 2+ messages in thread
From: Artyom V. Poptsov @ 2023-12-30 18:28 UTC (permalink / raw)
  To: 68152


[-- Attachment #1.1: Type: text/plain, Size: 100 bytes --]

Hello,

this patch series adds "go-github-com-google-btree" and
"go-github-com-peterbourgon-diskv".

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-Add-go-github-com-google-btree.patch --]
[-- Type: text/x-diff, Size: 1924 bytes --]

From f6b9da71abd070f8c6a1a77374a4017b24b7f8d8 Mon Sep 17 00:00:00 2001
Message-ID: <f6b9da71abd070f8c6a1a77374a4017b24b7f8d8.1703960709.git.poptsov.artyom@gmail.com>
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Sat, 30 Dec 2023 21:20:43 +0300
Subject: [PATCH 1/2] gnu: Add go-github-com-google-btree.

* gnu/packages/golang.scm (go-github-com-google-btree): New variable.

Change-Id: Ibe7ce2c457153e40539bb26e0fcaf0bec79ed253
---
 gnu/packages/golang.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 476edf6b4d..4d8dee6d3c 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -12931,6 +12931,29 @@ (define-public go-github-com-google-shlex
 using shell-style rules for quoting and commenting.")
     (license license:asl2.0)))
 
+(define-public go-github-com-google-btree
+  (package
+    (name "go-github-com-google-btree")
+    (version "1.1.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/google/btree")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0cqa8ck26p3wqz877hcvmfss17xm8wcbwd68shxv795ppahpdd9b"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "github.com/google/btree"))
+    (home-page "https://github.com/google/btree")
+    (synopsis "Simple, ordered, in-memory data structure for Go programs")
+    (description
+     "This package provides an in-memory B-Tree implementation for Go, useful as an
+ordered, mutable data structure.")
+    (license license:asl2.0)))
+
 (define-public go-github-com-gorilla-websocket
   (package
     (name "go-github-com-gorilla-websocket")

base-commit: 375200111db1c90dcb3cd179609f0aab96360bed
-- 
2.41.0


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.3: 0002-gnu-Add-go-github-com-peterbourgon-diskv.patch --]
[-- Type: text/x-diff, Size: 2361 bytes --]

From 7a80edcbdd789d80fd6065e97e79c710626e41c5 Mon Sep 17 00:00:00 2001
Message-ID: <7a80edcbdd789d80fd6065e97e79c710626e41c5.1703960709.git.poptsov.artyom@gmail.com>
In-Reply-To: <f6b9da71abd070f8c6a1a77374a4017b24b7f8d8.1703960709.git.poptsov.artyom@gmail.com>
References: <f6b9da71abd070f8c6a1a77374a4017b24b7f8d8.1703960709.git.poptsov.artyom@gmail.com>
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Sat, 30 Dec 2023 21:24:42 +0300
Subject: [PATCH 2/2] gnu: Add go-github-com-peterbourgon-diskv.

* gnu/packages/golang.scm (go-github-com-peterbourgon-diskv): New variable.

Change-Id: I0292404c636c42389c11c0ed552bacbf02178f7c
---
 gnu/packages/golang.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 4d8dee6d3c..81771b1788 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -12954,6 +12954,33 @@ (define-public go-github-com-google-btree
 ordered, mutable data structure.")
     (license license:asl2.0)))
 
+(define-public go-github-com-peterbourgon-diskv
+  (package
+    (name "go-github-com-peterbourgon-diskv")
+    (version "3.0.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/peterbourgon/diskv")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0pdy8f7bkm65gx4vknwcvfa619hknflqxkdlvmf427k2mzm91gmh"))))
+    (build-system go-build-system)
+    (arguments
+     `(#:import-path "github.com/peterbourgon/diskv"
+       #:go ,go-1.18))
+    (propagated-inputs (list go-github-com-google-btree))
+    (home-page "https://github.com/peterbourgon/diskv")
+    (synopsis "Disk-backed key-value store")
+    (description
+     "Diskv (disk-vee) is a simple, persistent key-value store written in the Go
+language.  It starts with a simple API for storing arbitrary data on a filesystem by
+key, and builds several layers of performance-enhancing abstraction on top.  The end
+result is a conceptually simple, but highly performant, disk-backed storage system.")
+    (license license:expat)))
+
 (define-public go-github-com-gorilla-websocket
   (package
     (name "go-github-com-gorilla-websocket")
-- 
2.41.0


[-- Attachment #1.4: Type: text/plain, Size: 216 bytes --]


- avp

-- 
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE  B57C E9C5 A2D9 0898 A02F

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 865 bytes --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#68152:
  2023-12-30 18:28 [bug#68152] [PATCH] gnu: Add "go-github-com-google-btree" and "go-github-com-peterbourgon-diskv" Artyom V. Poptsov
@ 2024-01-12 22:31 ` Sharlatan Hellseher
  0 siblings, 0 replies; 2+ messages in thread
From: Sharlatan Hellseher @ 2024-01-12 22:31 UTC (permalink / raw)
  To: 68152-done; +Cc: poptsov.artyom

Hi

I've re-based patches from the latest master commit and resolved conflict. Lint
and build passed successfully.

[env: /gnu/store/vpzdg6vmqja1xdsdfs84jm9py4qmf6xf-profile]
> ./pre-inst-env guix build --rounds=2 go-github-com-peterbourgon-diskv go-github-com-google-btree
/gnu/store/kh1gcimdv45f44d6xh25dknn5lp4j2a9-go-github-com-google-btree-1.1.2
/gnu/store/3z4ccdw2jlz2blzqr9ibm07syh7wajhx-go-github-com-peterbourgon-diskv-3.0.0
[env: /gnu/store/vpzdg6vmqja1xdsdfs84jm9py4qmf6xf-profile]
> ./pre-inst-env guix lint go-github-com-peterbourgon-diskv go-github-com-google-btree
fetching CVE database for 2024...on-diskv@3.0.0 [cve]...
fetching CVE database for 2023...
fetching CVE database for 2022...
fetching CVE database for 2021...
gnu/packages/golang.scm:12059:13:
go-github-com-peterbourgon-diskv@3.0.0: can be upgraded to 3.0.1

This warning is irrelevant, and may be ignored:
gnu/packages/golang.scm:12059:13:
go-github-com-peterbourgon-diskv@3.0.0: can be upgraded to 3.0.1

Upstream has an issue with tagging and release:
latest tag: https://github.com/peterbourgon/diskv/tree/v3.0.1
latest release: https://github.com/peterbourgon/diskv/releases/tag/v3.0.0

If it's chunk of long patch series, please let me know which project are you
trying to pack, let's share efforts :-)

Pushed to master as 0edf8a2eabd386d209d4b32aca599ce22a3a7533
--
VCS: https://github.incerto.xyz/; https://git.sr.ht/~hellseher/
GPG: 9847 81DE 689C 21C2 6418 0867 76D7 27BF F62C D2B5

… наш разум - превосходная объяснительная машина которая способна
найти смысл почти в чем угодно, истолковать любой феномен, но
совершенно не в состоянии принять мысль о непредсказуемости.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-01-12 22:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-30 18:28 [bug#68152] [PATCH] gnu: Add "go-github-com-google-btree" and "go-github-com-peterbourgon-diskv" Artyom V. Poptsov
2024-01-12 22:31 ` bug#68152: Sharlatan Hellseher

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).