From unknown Mon Aug 18 04:41:55 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#51031] [PATCH] gnu: Add wl-clipboard-x11. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 05 Oct 2021 11:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51031 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51031@debbugs.gnu.org Cc: Efraim Flashner X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163343321210545 (code B ref -1); Tue, 05 Oct 2021 11:27:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 Oct 2021 11:26:52 +0000 Received: from localhost ([127.0.0.1]:39210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXias-0002jt-US for submit@debbugs.gnu.org; Tue, 05 Oct 2021 07:26:52 -0400 Received: from lists.gnu.org ([209.51.188.17]:39200) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXiar-0002jl-7K for submit@debbugs.gnu.org; Tue, 05 Oct 2021 07:26:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXiaq-0000YF-Va for guix-patches@gnu.org; Tue, 05 Oct 2021 07:26:44 -0400 Received: from flashner.co.il ([178.62.234.194]:55258) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXiap-0006qE-1b for guix-patches@gnu.org; Tue, 05 Oct 2021 07:26:44 -0400 Received: from localhost (unknown [141.226.169.107]) by flashner.co.il (Postfix) with ESMTPSA id B9BFD40333; Tue, 5 Oct 2021 11:26:40 +0000 (UTC) From: Efraim Flashner Date: Tue, 5 Oct 2021 14:23:58 +0300 Message-Id: <73a4e018a8b7af10005531a50dc7b38059bc08c6.1633432986.git.efraim@flashner.co.il> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=178.62.234.194; envelope-from=efraim@flashner.co.il; helo=flashner.co.il X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) * gnu/packages/xdisorg.scm (wl-clipboard-x11): New variable. --- gnu/packages/xdisorg.scm | 46 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm index 45ea4f2e76..8d3af69998 100644 --- a/gnu/packages/xdisorg.scm +++ b/gnu/packages/xdisorg.scm @@ -11,7 +11,7 @@ ;;; Copyright © 2015 Florian Paul Schmidt ;;; Copyright © 2016 Christine Lemmer-Webber ;;; Copyright © 2016, 2018 Ricardo Wurmus -;;; Copyright © 2016, 2017, 2018, 2019, 2020 Efraim Flashner +;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Efraim Flashner ;;; Copyright © 2016 Leo Famulari ;;; Copyright © 2016, 2017, 2019, 2020 Marius Bakke ;;; Copyright © 2016 Petter @@ -67,6 +67,7 @@ (define-module (gnu packages xdisorg) #:use-module (guix build-system cmake) + #:use-module (guix build-system copy) #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system gnu) #:use-module (guix build-system meson) @@ -2380,6 +2381,49 @@ (define-public wl-clipboard Wayland.") (license license:gpl3+))) +(define-public wl-clipboard-x11 + (package + (name "wl-clipboard-x11") + (version "5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/brunelli/wl-clipboard-x11") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1y7jv7rps0sdzmm859wn2l8q4pg2x35smcrm7mbfxn5vrga0bslb")))) + (build-system copy-build-system) + (arguments + `(#:install-plan + '(("src/" "bin/") + ("man/" "man/man1")) + #:phases + (modify-phases %standard-phases + (add-after 'install 'wrap-binary + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (wl-clipboard (assoc-ref inputs "wl-clipboard"))) + (wrap-program (string-append out "/bin/wl-clipboard-x11") + `("PATH" prefix (,(string-append wl-clipboard "/bin"))))) + #t)) + (add-after 'wrap-binary 'symlink-utilities + ;; As seen in the Makefile. + (lambda* (#:key outputs #:allow-other-keys) + (let ((bin (string-append (assoc-ref outputs "out") "/bin/"))) + (symlink "wl-clipboard-x11" (string-append bin "xclip")) + (symlink "wl-clipboard-x11" (string-append bin "xsel"))) + #t))))) + (inputs + `(("wl-clipboard" ,wl-clipboard))) + (home-page "https://github.com/brunelli/wl-clipboard-x11") + (synopsis "Use wl-clipboard as a drop-in replacement to X11 clipboard tools") + (description "This package provides a wrapper script around +@code{x11-clipboard} to use it as a clipboard on X11 also. It also contains +helper scripts for @code{xclip} and @code{xsel} to assist with the transition.") + (license license:gpl3+))) + (define-public autocutsel (package (name "autocutsel") base-commit: b54bf075c577b9f78041362035383dbbfb456617 -- 2.33.0 From unknown Mon Aug 18 04:41:55 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Efraim Flashner Subject: bug#51031: closed (Re: bug#51031: Acknowledgement ([PATCH] gnu: Add wl-clipboard-x11.)) Message-ID: References: <73a4e018a8b7af10005531a50dc7b38059bc08c6.1633432986.git.efraim@flashner.co.il> X-Gnu-PR-Message: they-closed 51031 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 51031@debbugs.gnu.org Date: Tue, 19 Oct 2021 08:20:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1634631602-8434-1" This is a multi-part message in MIME format... ------------=_1634631602-8434-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #51031: [PATCH] gnu: Add wl-clipboard-x11. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 51031@debbugs.gnu.org. --=20 51031: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D51031 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1634631602-8434-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 51031-done) by debbugs.gnu.org; 19 Oct 2021 08:19:33 +0000 Received: from localhost ([127.0.0.1]:49343 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mckLN-0002BK-IB for submit@debbugs.gnu.org; Tue, 19 Oct 2021 04:19:33 -0400 Received: from flashner.co.il ([178.62.234.194]:48462) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mckLL-0002B8-Ng for 51031-done@debbugs.gnu.org; Tue, 19 Oct 2021 04:19:32 -0400 Received: from localhost (unknown [141.226.169.107]) by flashner.co.il (Postfix) with ESMTPSA id 03FDC40277 for <51031-done@debbugs.gnu.org>; Tue, 19 Oct 2021 08:19:25 +0000 (UTC) Date: Tue, 19 Oct 2021 11:18:26 +0300 From: Efraim Flashner To: 51031-done@debbugs.gnu.org Subject: Re: bug#51031: Acknowledgement ([PATCH] gnu: Add wl-clipboard-x11.) Message-ID: Mail-Followup-To: Efraim Flashner , 51031-done@debbugs.gnu.org References: <73a4e018a8b7af10005531a50dc7b38059bc08c6.1633432986.git.efraim@flashner.co.il> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="zCVPKwim5qI7Ti63" Content-Disposition: inline In-Reply-To: X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 51031-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --zCVPKwim5qI7Ti63 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Patch pushed --=20 Efraim Flashner =D7=A8=D7=A0=D7=A9=D7=9C=D7=A4 = =D7=9D=D7=99=D7=A8=D7=A4=D7=90 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --zCVPKwim5qI7Ti63 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmFuf1IACgkQQarn3Mo9 g1EF4w//aFS7zYi1dVurNrD9DMiaXjg9T2ejIQcaSi2hZkE8DJv9o6Kc9XLTeVyD ZYkho37rBVJTdo5159h2y4FFxeFUFDUJVwSl8MSwG0y5/g5HaViGVeiDMx9FOByu RWiyJRUhjf25bascDkAWW4XPftKcRs1iQodHB1KkEYDYK3HAUaz9vb7qJ5sLKcNK HxUH9zSo5qSsSeRv36y/r3LDCTIRj66tkK4vRBh6kcfCL+jSpY9YQ309DITjCkFs cnxH3WAiTbv8iaAw5GvJC7/uD5BPBsjJ8RI4Ol6WbTF0tbbgAmhbVwrd+EyBw2HZ JJaYE92VjJUv6qaaaFLvjR43c8opfagYRNw0AzALVlbZHJphUf8XpxIilwap7sop ViXXGlaxsnlt4yYIMQgDaLR2nEZGYpcYmZDmfijjp67jzqcLrKiQMETbOSiqhRvO iuD9WsO7RxL2Lj9+/x0OaIxobaOOP/+HaSwarHj2tjk2C95kg+V+K2mjJl7HmHg/ RmT6fovr8y9V7IaAWxsjp1tk9NGEMcJVpV3I683RDF4VbdCFShMYUl0mQQilP1OL YthrEtBRWBdQGk+cyywnI5gCr9+2RrkKjdWMPSgNq7TRkNzGVGcb/FdRO7bYZHzI oLPnF8nFcD7DYjosJwFehrTvqs6d+SndTEhAoCHzrUMsi9vrCTs= =tQuo -----END PGP SIGNATURE----- --zCVPKwim5qI7Ti63-- ------------=_1634631602-8434-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 5 Oct 2021 11:26:52 +0000 Received: from localhost ([127.0.0.1]:39210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXias-0002jt-US for submit@debbugs.gnu.org; Tue, 05 Oct 2021 07:26:52 -0400 Received: from lists.gnu.org ([209.51.188.17]:39200) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXiar-0002jl-7K for submit@debbugs.gnu.org; Tue, 05 Oct 2021 07:26:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXiaq-0000YF-Va for guix-patches@gnu.org; Tue, 05 Oct 2021 07:26:44 -0400 Received: from flashner.co.il ([178.62.234.194]:55258) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXiap-0006qE-1b for guix-patches@gnu.org; Tue, 05 Oct 2021 07:26:44 -0400 Received: from localhost (unknown [141.226.169.107]) by flashner.co.il (Postfix) with ESMTPSA id B9BFD40333; Tue, 5 Oct 2021 11:26:40 +0000 (UTC) From: Efraim Flashner To: guix-patches@gnu.org Subject: [PATCH] gnu: Add wl-clipboard-x11. Date: Tue, 5 Oct 2021 14:23:58 +0300 Message-Id: <73a4e018a8b7af10005531a50dc7b38059bc08c6.1633432986.git.efraim@flashner.co.il> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=178.62.234.194; envelope-from=efraim@flashner.co.il; helo=flashner.co.il X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Efraim Flashner X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) * gnu/packages/xdisorg.scm (wl-clipboard-x11): New variable. --- gnu/packages/xdisorg.scm | 46 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm index 45ea4f2e76..8d3af69998 100644 --- a/gnu/packages/xdisorg.scm +++ b/gnu/packages/xdisorg.scm @@ -11,7 +11,7 @@ ;;; Copyright © 2015 Florian Paul Schmidt ;;; Copyright © 2016 Christine Lemmer-Webber ;;; Copyright © 2016, 2018 Ricardo Wurmus -;;; Copyright © 2016, 2017, 2018, 2019, 2020 Efraim Flashner +;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Efraim Flashner ;;; Copyright © 2016 Leo Famulari ;;; Copyright © 2016, 2017, 2019, 2020 Marius Bakke ;;; Copyright © 2016 Petter @@ -67,6 +67,7 @@ (define-module (gnu packages xdisorg) #:use-module (guix build-system cmake) + #:use-module (guix build-system copy) #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system gnu) #:use-module (guix build-system meson) @@ -2380,6 +2381,49 @@ (define-public wl-clipboard Wayland.") (license license:gpl3+))) +(define-public wl-clipboard-x11 + (package + (name "wl-clipboard-x11") + (version "5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/brunelli/wl-clipboard-x11") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1y7jv7rps0sdzmm859wn2l8q4pg2x35smcrm7mbfxn5vrga0bslb")))) + (build-system copy-build-system) + (arguments + `(#:install-plan + '(("src/" "bin/") + ("man/" "man/man1")) + #:phases + (modify-phases %standard-phases + (add-after 'install 'wrap-binary + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (wl-clipboard (assoc-ref inputs "wl-clipboard"))) + (wrap-program (string-append out "/bin/wl-clipboard-x11") + `("PATH" prefix (,(string-append wl-clipboard "/bin"))))) + #t)) + (add-after 'wrap-binary 'symlink-utilities + ;; As seen in the Makefile. + (lambda* (#:key outputs #:allow-other-keys) + (let ((bin (string-append (assoc-ref outputs "out") "/bin/"))) + (symlink "wl-clipboard-x11" (string-append bin "xclip")) + (symlink "wl-clipboard-x11" (string-append bin "xsel"))) + #t))))) + (inputs + `(("wl-clipboard" ,wl-clipboard))) + (home-page "https://github.com/brunelli/wl-clipboard-x11") + (synopsis "Use wl-clipboard as a drop-in replacement to X11 clipboard tools") + (description "This package provides a wrapper script around +@code{x11-clipboard} to use it as a clipboard on X11 also. It also contains +helper scripts for @code{xclip} and @code{xsel} to assist with the transition.") + (license license:gpl3+))) + (define-public autocutsel (package (name "autocutsel") base-commit: b54bf075c577b9f78041362035383dbbfb456617 -- 2.33.0 ------------=_1634631602-8434-1--