aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/security-token.scm
diff options
context:
space:
mode:
authorLiliana Marie Prikler <liliana.prikler@gmail.com>2023-08-14 00:32:53 +0200
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2023-08-14 00:32:53 +0200
commit51deacd8604b59aa434e944c73aecefd5183d13e (patch)
tree7429b8652ce656f883e8277ec95e273d88fe0fe3 /gnu/packages/security-token.scm
parent3349a50d700a2112a31ac4ce6cc6639d3b4cf1e2 (diff)
parentbe6f5edd445850720dfcec2642db643b84fc0645 (diff)
downloadguix-51deacd8604b59aa434e944c73aecefd5183d13e.tar.gz
guix-51deacd8604b59aa434e944c73aecefd5183d13e.zip
Merge branch 'master' into emacs-team
Diffstat (limited to 'gnu/packages/security-token.scm')
-rw-r--r--gnu/packages/security-token.scm58
1 files changed, 58 insertions, 0 deletions
diff --git a/gnu/packages/security-token.scm b/gnu/packages/security-token.scm
index 6d7f5c9ab2..3a0ed245ad 100644
--- a/gnu/packages/security-token.scm
+++ b/gnu/packages/security-token.scm
@@ -51,6 +51,7 @@
#:use-module (guix build-system glib-or-gtk)
#:use-module (guix build-system pyproject)
#:use-module (guix build-system python)
+ #:use-module (guix build-system qt)
#:use-module (gnu packages autotools)
#:use-module (gnu packages base)
#:use-module (gnu packages bash)
@@ -772,6 +773,63 @@ udev rules to your system configuration to be able to configure the YubiKey as
an unprivileged user.")
(license license:bsd-2)))
+(define-public yubikey-manager-qt
+ (package
+ (name "yubikey-manager-qt")
+ (version "1.2.5")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://developers.yubico.com/" name
+ "/Releases/" name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1qjp9p7i6957lf6ycwwz0178nmjgdyydb2f235bkin0pfm3rxcp9"))))
+ (build-system qt-build-system)
+ (arguments
+ (list
+ #:tests? #f ;no test suite
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-paths
+ (lambda _
+ (substitute* "ykman-gui/deployment.pri"
+ (("/usr/bin")
+ (string-append #$output "/bin")))))
+ (replace 'configure
+ (lambda _
+ (invoke "qmake")))
+ (add-after 'install 'install-desktop-resources
+ (lambda _
+ (let ((datadir (string-append #$output "/share")))
+ (with-directory-excursion "resources"
+ (install-file "icons/ykman.png"
+ (string-append datadir "/pixmaps"))
+ (install-file "com.yubico.yubikey_manager.metainfo.xml"
+ (string-append datadir "/metainfo"))
+ (install-file "ykman-gui.desktop"
+ (string-append datadir "/applications"))))))
+ (add-after 'qt-wrap 'wrap-more
+ (lambda _
+ (wrap-program (string-append #$output "/bin/ykman-gui")
+ ;; Wrap PYTHONPATH so that pyotherside can find the
+ ;; yubikey-manager library.
+ `("GUIX_PYTHONPATH" prefix
+ (,(getenv "GUIX_PYTHONPATH")))))))))
+ (native-inputs (list python-wrapper))
+ (inputs (list pyotherside-for-qt5
+ python-yubikey-manager
+ qtdeclarative-5
+ qtgraphicaleffects
+ qtquickcontrols-5
+ qtquickcontrols2-5
+ qtsvg-5))
+ (home-page "https://developers.yubico.com/yubikey-manager-qt/")
+ (synopsis "GUI for configuring any YubiKey over all USB interfaces")
+ (description "YubiKey Manager (Qt) is a graphical application for
+configuring any YubiKey over all USB interfaces. For a CLI alternative, refer
+to the @code{python-yubikey-manager} package.")
+ (license license:bsd-2)))
+
(define-public libnitrokey
(package
(name "libnitrokey")