GNU bug report logs - #72247
[PATCH 0/2] gnu: Add cliphist

Previous Next

Package: guix-patches;

Reported by: spencerpeters <spencerpeters <at> protonmail.com>

Date: Tue, 23 Jul 2024 01:51:02 UTC

Severity: normal

Tags: patch

Done: Sharlatan Hellseher <sharlatanus <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 72247 in the body.
You can then email your comments to 72247 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#72247; Package guix-patches. (Tue, 23 Jul 2024 01:51:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to spencerpeters <spencerpeters <at> protonmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Tue, 23 Jul 2024 01:51:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: spencerpeters <spencerpeters <at> protonmail.com>
To: "guix-patches <at> gnu.org" <guix-patches <at> gnu.org>
Subject: [PATCH 0/2] gnu: Add cliphist
Date: Tue, 23 Jul 2024 01:50:21 +0000
[Message part 1 (text/plain, inline)]
This patch set adds the Wayland clipboard manager cliphist as well as the go
package go-go-senan-xyz-flagconf as a dependency.

Spencer Peters (2):
* gnu/packages/golang-xyz.scm (go-go-senan-xyz-flagconf): New
variable.
* gnu/packages/xdisorg.scm (cliphist): New variable.

gnu/packages/golang-xyz.scm | 29 ++++++++++++++++++++++++++++
gnu/packages/xdisorg.scm | 38 +++++++++++++++++++++++++++++++++++++
2 files changed, 67 insertions(+)

base-commit: b70893b5c2168a4d3a7f6a497fb36608900c83ae
--
2.45.2
[Message part 2 (text/html, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#72247; Package guix-patches. (Tue, 23 Jul 2024 01:57:02 GMT) Full text and rfc822 format available.

Message #8 received at 72247 <at> debbugs.gnu.org (full text, mbox):

From: spencerpeters <spencerpeters <at> protonmail.com>
To: "72247 <at> debbugs.gnu.org" <72247 <at> debbugs.gnu.org>
Subject: [PATCH 1/2] gnu: Add go-go-senan-xyz-flagconf.
Date: Tue, 23 Jul 2024 01:56:18 +0000
[Message part 1 (text/plain, inline)]
From: Spencer Peters <spencerpeters <at> protonmail.com>

* gnu/packages/golang-xyz.scm (go-go-senan-xyz-flagconf): New variable.

Change-Id: Iaa14ace540e82405876ad48e807d246f9fbdd00a
---
gnu/packages/golang-xyz.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 9931911e32..8cdef56b7b 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -37,6 +37,7 @@
;;; Copyright © 2024 Jesse Eisses <jesse <at> eisses.email>
;;; Copyright © 2024 Troy Figiel <troy <at> troyfigiel.com>
;;; Copyright © 2024 Luis Higino <luishenriquegh2701 <at> gmail.com>
+;;; Copyright © 2024 Spencer Peters <spencerpeters <at> protonmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -5027,6 +5028,34 @@ (define-public go-go-etcd-io-bbolt
Postgres or MySQL.")
(license license:expat)))

+(define-public go-go-senan-xyz-flagconf
+ (package
+ (name "go-go-senan-xyz-flagconf")
+ (version "0.1.9")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/sentriz/flagconf")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1rms7hj1cdi5gfyhf1am1f8c4lq9ll4ashqi87yc6aq93gqgkag0"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ ;; Won't build with any version less than 1.20
+ #:go go-1.22
+ #:import-path "go.senan.xyz/flagconf"))
+ (propagated-inputs (list go-github-com-rogpeppe-go-internal
+ go-golang-org-x-sys go-golang-org-x-tools))
+ (home-page "https://go.senan.xyz/flagconf")
+ (synopsis "Extensions to Go's flag package")
+ (description
+ "Flagconf provides extensions to Go's flag package to support prefixed
+environment variables and a simple config file format.")
+ (license license:expat)))
+
(define-public go-go-uber-org-atomic
(package
(name "go-go-uber-org-atomic")
--
2.45.2
[Message part 2 (text/html, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#72247; Package guix-patches. (Tue, 23 Jul 2024 01:58:02 GMT) Full text and rfc822 format available.

Message #11 received at 72247 <at> debbugs.gnu.org (full text, mbox):

From: spencerpeters <spencerpeters <at> protonmail.com>
To: "72247 <at> debbugs.gnu.org" <72247 <at> debbugs.gnu.org>
Subject: [PATCH 2/2] * gnu/packages/xdisorg.scm (cliphist): New variable.
Date: Tue, 23 Jul 2024 01:57:34 +0000
[Message part 1 (text/plain, inline)]
From: Spencer Peters <spencerpeters <at> protonmail.com>
* gnu/packages/xdisorg.scm (cliphist): New variable.

Change-Id: I33d71b9739158101638b66827592d1c3cbb1b443
---
gnu/packages/xdisorg.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)

diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index 4c12835b24..cdd196e35d 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -63,6 +63,7 @@
;;; Copyright © 2022 Mehmet Tekman <mtekman89 <at> gmail.com>
;;; Copyright © 2024 Artyom V. Poptsov <poptsov.artyom <at> gmail.com>
;;; Copyright © 2024 Igor Goryachev <igor <at> goryachev.org>
+;;; Copyright © 2024 Spencer Peters <spencerpeters <at> protonmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -116,6 +117,8 @@ (define-module (gnu packages xdisorg)
#:use-module (gnu packages gl)
#:use-module (gnu packages gl)
#:use-module (gnu packages glib)
+ #:use-module (gnu packages golang)
+ #:use-module (gnu packages golang-build)
#:use-module (gnu packages golang-xyz)
#:use-module (gnu packages gnome)
#:use-module (gnu packages gtk)
@@ -3852,3 +3855,38 @@ (define-public xxkb
accepts events from XKB. That means that it will work with the existing
setup of your X Server without any modifications.")
(license license:artistic2.0)))
+
+(define-public cliphist
+ (package
+ (name "cliphist")
+ (version "0.5.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/sentriz/cliphist")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1cbhrw9vk8c0in9yyhlp0k9rldgjwbcj00d7vqh69p3igznhdgsk"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:go go-1.22
+ #:import-path "go.senan.xyz/cliphist"))
+ (inputs (list go-github-com-rogpeppe-go-internal
+ go-go-etcd-io-bbolt
+ go-go-senan-xyz-flagconf
+ go-golang-org-x-image
+ go-golang-org-x-sys
+ go-golang-org-x-tools
+ wl-clipboard
+ xdg-utils))
+ (synopsis "Clipboard history manager for wayland with support for images")
+ (description
+ "A Wayland clipboard history manager. It can write clipboard changes to a
+history file, recall history with any picker which accepts input from
+stdin (including dmenu, rofi, and wofi), copy and past both images and text,
+and preserve leading and trailing whitespace.")
+ (home-page "https://github.com/sentriz/cliphist")
+ (license license:gpl3)))
--
2.45.2
[Message part 2 (text/html, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#72247; Package guix-patches. (Sun, 28 Jul 2024 22:26:01 GMT) Full text and rfc822 format available.

Message #14 received at 72247 <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 72247 <at> debbugs.gnu.org
Subject: [PATCH 0/2] gnu: Add cliphist
Date: Sun, 28 Jul 2024 23:24:23 +0100
[Message part 1 (text/plain, inline)]
Hi,

Thank you for the patches.

May you adjust indentation as a first part of improvement for v2, please?
If you are Emacs user, select the region and apply function
`indent-region' (C-M-\), or try to use `guix import go <module-name>`.

- Try to build with current default go version which is 1.21
- If it's an executable command, please add `#:install-source #f` and
place all Golang modules to [native-inputs]
- Do not start description with article
- Place [home-page] above [synopsis] field.

---
Oleg
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#72247; Package guix-patches. (Sun, 11 Aug 2024 21:27:02 GMT) Full text and rfc822 format available.

Message #17 received at 72247 <at> debbugs.gnu.org (full text, mbox):

From: spencerpeters <spencerpeters <at> protonmail.com>
To: "72247 <at> debbugs.gnu.org" <72247 <at> debbugs.gnu.org>
Subject: [PATCH 1/2] gnu: Add go-go-senan-xyz-flagconf
Date: Sun, 11 Aug 2024 21:25:32 +0000
I've fixed the inputs for go-go-senan-xyz-flagconf and cliphist and I've updated the build-system arguments as well as the [synopsis] and [description] fields for cliphist. I believe the formatting issues were caused by my email client--hopefully this time it doesn't mess up the indentation again.

Best, Spencer

* gnu/packages/golang-xyz.scm (go-go-senan-xyz-flagconf): New variable.

Change-Id: I3edcda63ca09e1370be4da8c6926bacde5d66cbf
---
 gnu/packages/golang-xyz.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 32b904c59c..22f5124d7c 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -39,6 +39,7 @@
 ;;; Copyright © 2024 Jesse Eisses <jesse <at> eisses.email>
 ;;; Copyright © 2024 Luis Higino <luishenriquegh2701 <at> gmail.com>
 ;;; Copyright © 2024 Troy Figiel <troy <at> troyfigiel.com>
+;;; Copyright © 2024 Spencer Peters <spencerpeters <at> protonmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -5527,6 +5528,34 @@ (define-public go-go-etcd-io-bbolt
 Postgres or MySQL.")
     (license license:expat)))
 
+(define-public go-go-senan-xyz-flagconf
+  (package
+    (name "go-go-senan-xyz-flagconf")
+    (version "0.1.9")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/sentriz/flagconf")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1rms7hj1cdi5gfyhf1am1f8c4lq9ll4ashqi87yc6aq93gqgkag0"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:go go-1.21
+      #:import-path "go.senan.xyz/flagconf"))
+    (propagated-inputs (list go-github-com-rogpeppe-go-internal
+                             go-golang-org-x-sys
+                             go-golang-org-x-tools))
+    (home-page "https://go.senan.xyz/flagconf")
+    (synopsis "Extensions to Go's flag package")
+    (description
+     "Flagconf provides extensions to Go's flag package to support prefixed
+environment variables and a simple config file format.")
+    (license license:expat)))
+
 (define-public go-go-uber-org-atomic
   (package
     (name "go-go-uber-org-atomic")
-- 
2.45.2




Information forwarded to guix-patches <at> gnu.org:
bug#72247; Package guix-patches. (Sun, 11 Aug 2024 21:28:01 GMT) Full text and rfc822 format available.

Message #20 received at 72247 <at> debbugs.gnu.org (full text, mbox):

From: spencerpeters <spencerpeters <at> protonmail.com>
To: "72247 <at> debbugs.gnu.org" <72247 <at> debbugs.gnu.org>
Subject: [PATCH 2/2] gnu: Add cliphist.
Date: Sun, 11 Aug 2024 21:26:50 +0000
* gnu/packages/xdisorg.scm (cliphist): New variable.


Change-Id: Ic165a6b92d7c30ee8d8ad9aa0f92cfdc198d94a5
---
 gnu/packages/xdisorg.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index 4c12835b24..a9459440b0 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -63,6 +63,7 @@
 ;;; Copyright © 2022 Mehmet Tekman <mtekman89 <at> gmail.com>
 ;;; Copyright © 2024 Artyom V. Poptsov <poptsov.artyom <at> gmail.com>
 ;;; Copyright © 2024 Igor Goryachev <igor <at> goryachev.org>
+;;; Copyright © 2024 Spencer Peters <spencerpeters <at> protonmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -116,6 +117,8 @@ (define-module (gnu packages xdisorg)
   #:use-module (gnu packages gl)
   #:use-module (gnu packages gl)
   #:use-module (gnu packages glib)
+  #:use-module (gnu packages golang)
+  #:use-module (gnu packages golang-build)
   #:use-module (gnu packages golang-xyz)
   #:use-module (gnu packages gnome)
   #:use-module (gnu packages gtk)
@@ -3852,3 +3855,37 @@ (define-public xxkb
 accepts events from XKB.  That means that it will work with the existing
 setup of your X Server without any modifications.")
     (license license:artistic2.0)))
+
+(define-public cliphist
+  (package
+    (name "cliphist")
+    (version "0.5.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/sentriz/cliphist")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1cbhrw9vk8c0in9yyhlp0k9rldgjwbcj00d7vqh69p3igznhdgsk"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:install-source? #f
+      #:go go-1.21
+      #:import-path "go.senan.xyz/cliphist"))
+    (native-inputs (list go-github-com-rogpeppe-go-internal
+                         go-go-etcd-io-bbolt
+                         go-go-senan-xyz-flagconf
+                         go-golang-org-x-image
+                         go-golang-org-x-sys
+                         go-golang-org-x-tools))
+    (home-page "https://github.com/sentriz/cliphist")
+    (synopsis "Clipboard history manager for wayland with support for images")
+    (description
+     "A Wayland clipboard history manager.  It can write clipboard changes to a
++history file, recall history with any picker which accepts input from
++stdin (including dmenu, rofi, and wofi), copy and past both images and text,
++and preserve leading and trailing whitespace.")
+    (license license:gpl3)))
-- 
2.45.2




Reply sent to Sharlatan Hellseher <sharlatanus <at> gmail.com>:
You have taken responsibility. (Mon, 26 Aug 2024 23:41:02 GMT) Full text and rfc822 format available.

Notification sent to spencerpeters <spencerpeters <at> protonmail.com>:
bug acknowledged by developer. (Mon, 26 Aug 2024 23:41:02 GMT) Full text and rfc822 format available.

Message #25 received at 72247-done <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 72247-done <at> debbugs.gnu.org
Subject: [PATCH 0/2] gnu: Add cliphist
Date: Tue, 27 Aug 2024 00:38:50 +0100
[Message part 1 (text/plain, inline)]
Pushed as a84f26f0af..61656d3f61 to master with minor modifications.

--
Oleg
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 24 Sep 2024 11:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 55 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.