[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/08: gnu: keepassxc: Record file name of ‘xclip’ and ‘wl-copy’.
From: |
guix-commits |
Subject: |
01/08: gnu: keepassxc: Record file name of ‘xclip’ and ‘wl-copy’. |
Date: |
Sun, 10 Dec 2023 16:58:43 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit e15419673618566eb5d7e568be184af7aa3ec742
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sun Dec 10 16:55:10 2023 +0100
gnu: keepassxc: Record file name of ‘xclip’ and ‘wl-copy’.
* gnu/packages/password-utils.scm (keepassxc)[arguments]: Add
‘record-clipboard-programs’ phase.
[inputs]: Add WL-CLIPBOARD and XCLIP.
Change-Id: I3cfe3d8604da575f6bf5e5cf3ce862fbac099ab6
---
gnu/packages/password-utils.scm | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm
index 385bd64985..4099f23098 100644
--- a/gnu/packages/password-utils.scm
+++ b/gnu/packages/password-utils.scm
@@ -168,6 +168,25 @@ human.")
#~(list "-DWITH_XC_DOCS=NO")))
#:phases
#~(modify-phases %standard-phases
+ (add-after 'unpack 'record-clipboard-programs
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; Record the file names of clipboard programs invoked by
+ ;; 'keepassxc-cli clip' and similar.
+ ;;
+ ;; Note: Use 'QString::fromUtf8' rather than 'QStringLiteral' so
+ ;; that the store reference is stored as ASCII instead of
+ ;; UTF-16, which would be invisible to the GC's scanner.
+ (substitute* "src/cli/Utils.cpp"
+ (("QStringLiteral\\(\"xclip\"\\)")
+ (string-append
+ "QString::fromUtf8(\""
+ (search-input-file inputs "bin/xclip")
+ "\")"))
+ (("QStringLiteral\\(\"wl-copy\"\\)")
+ (string-append
+ "QString::fromUtf8(\""
+ (search-input-file inputs "bin/wl-copy")
+ "\")")))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
@@ -199,6 +218,8 @@ human.")
qtx11extras
quazip-0 ; XC_KEESHARE
readline
+ wl-clipboard ;for 'wl-copy'
+ xclip ;for 'xclip'
yubikey-personalization ; XC_YUBIKEY
zlib))
(home-page "https://keepassxc.org")
- branch master updated (63e06f30ce -> a90bc8b6a8), guix-commits, 2023/12/10
- 03/08: gnu: ‘make-icecat-extension’ inherits package location., guix-commits, 2023/12/10
- 06/08: gnu: guile-smc: Update to 0.6.3., guix-commits, 2023/12/10
- 07/08: gnu: guile-gitlab: Improve the package style., guix-commits, 2023/12/10
- 04/08: file-systems: Add tracefs to %pseudo-file-system-types., guix-commits, 2023/12/10
- 02/08: gnu: Add KeePassXC-Browser., guix-commits, 2023/12/10
- 05/08: services: Fix oci-container-service-type container user., guix-commits, 2023/12/10
- 08/08: gnu: openmw: Update to 0.48.0., guix-commits, 2023/12/10
- 01/08: gnu: keepassxc: Record file name of ‘xclip’ and ‘wl-copy’.,
guix-commits <=