From patchwork Tue Aug 8 04:14:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Cournoyer X-Patchwork-Id: 52649 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 05AAB27BBEA; Tue, 8 Aug 2023 05:18:31 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0840827BBE9 for ; Tue, 8 Aug 2023 05:18:28 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qTEAW-0005t4-U0; Tue, 08 Aug 2023 00:18:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qTEAV-0005sf-Ll for guix-patches@gnu.org; Tue, 08 Aug 2023 00:18:03 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qTEAU-0006mq-S2 for guix-patches@gnu.org; Tue, 08 Aug 2023 00:18:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qTEAU-0004ad-Fp for guix-patches@gnu.org; Tue, 08 Aug 2023 00:18:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65139] [PATCH 3/3] gnu: Add yubikey-manager-qt. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 08 Aug 2023 04:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65139 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65139@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 65139-submit@debbugs.gnu.org id=B65139.169146826017604 (code B ref 65139); Tue, 08 Aug 2023 04:18:02 +0000 Received: (at 65139) by debbugs.gnu.org; 8 Aug 2023 04:17:40 +0000 Received: from localhost ([127.0.0.1]:34721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTEA7-0004Zq-Hj for submit@debbugs.gnu.org; Tue, 08 Aug 2023 00:17:39 -0400 Received: from mail-qv1-xf29.google.com ([2607:f8b0:4864:20::f29]:59518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTEA5-0004ZV-8e for 65139@debbugs.gnu.org; Tue, 08 Aug 2023 00:17:37 -0400 Received: by mail-qv1-xf29.google.com with SMTP id 6a1803df08f44-63d03d3cac6so25855236d6.2 for <65139@debbugs.gnu.org>; Mon, 07 Aug 2023 21:17:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691468251; x=1692073051; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cWhXOt+SKzVw+rxpa+0ZvGrKWpluBi5WsJtPkAnz+xE=; b=PxE6SwBEtEEhoGfU4FI2PjMc3QQUiHsB/n/OKb2Wm8CShVuGO4ZJHLd+scVuVWFkWD bU6K8pRhereC1IHHiI3D7011srrklJJmAjenWNS6ZCtEApkTGFDH21QUPGBKkJIRinT3 pux7LlPOmpYcYp0be3fBh4+ZfQ2z9izghAeV8k0B2ToVPdIyxF7Eo0BUANSPYGTmCyFK L04mJRpHBnuBst5Yngulv5INbFi7hN6u75neFWqJ5wzbISqa10ZQi7JQS3nIwdUvbdqI fmSIEFtiuYaxWUn3Dqkrt6YcytEV22DeKcFtm+Hs01DdZjb0Z2sprOZn4dnMRXWp9Ptu rHzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691468251; x=1692073051; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cWhXOt+SKzVw+rxpa+0ZvGrKWpluBi5WsJtPkAnz+xE=; b=S6JMIwhOPNM8DoHhfSGbhHt/zji8Q5O40KjI91a2WCzh/fNYaois7MlogVGKQUMIqM HDPaV21QgaoPDuFlStp3E1Vqw6VWNWrHtpKOxblMdPMU/OrfWPshPpKw6ftr+vu4tMzO EMlyvyRN4hTtT2yJM1GjEmUpLjeQJEZ8kPg+Gj3giEj5MCMJaZ70v6Q6k4sPsAvyoZOt ahdrm0tcBLi8m+AMMlh9m01p6KmimWN35wEn07V9UXrtJuVATNlCmSQnoUbM5/ipMDjh 2zqmM/Y9hHoDZ3dXVOA8UqwGqw4huI0KppDLv/TaxoO9a8Ebjj4spJz/0wo3365X5lur FGCg== X-Gm-Message-State: AOJu0Ywq6LmL8OIFje92scsBahOHIibuL2L0kepskoFijAk/D2dCSQn5 IA5vJDYv5oFdkDb2cr21dX1WQoXrfpqLQ0kA X-Google-Smtp-Source: AGHT+IE7CinIUkFvLujC/C+1IMucZthKXDZVNfqV0P27VY2F30MxsIcg0/Nw0Ek91pShRHzObgKt7g== X-Received: by 2002:a05:6214:588b:b0:626:290f:3e80 with SMTP id md11-20020a056214588b00b00626290f3e80mr9643658qvb.50.1691468251566; Mon, 07 Aug 2023 21:17:31 -0700 (PDT) Received: from localhost.localdomain (dsl-205-236-230-170.b2b2c.ca. [205.236.230.170]) by smtp.gmail.com with ESMTPSA id a10-20020a0ce38a000000b00636291d04adsm3374039qvl.47.2023.08.07.21.17.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 21:17:30 -0700 (PDT) From: Maxim Cournoyer Date: Tue, 8 Aug 2023 00:14:06 -0400 Message-ID: <4a7768c184069c62d884904e2cc42ba31088d429.1691468046.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/security-token.scm (yubikey-manager-qt): New variable. --- gnu/packages/security-token.scm | 58 +++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) 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 @@ (define-module (gnu packages security-token) #: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 @@ (define-public python-yubikey-manager 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")