From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:53808) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdruR-0006Ie-JP for guix-patches@gnu.org; Thu, 20 Jun 2019 03:55:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hdruQ-0003lp-19 for guix-patches@gnu.org; Thu, 20 Jun 2019 03:55:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34254) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hdruP-0003ll-UJ for guix-patches@gnu.org; Thu, 20 Jun 2019 03:55:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hdruP-0000ok-Sd for guix-patches@gnu.org; Thu, 20 Jun 2019 03:55:01 -0400 Subject: [bug#36303] [PATCH] gnu: Add qtpass. Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:53698) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdrtg-0005xt-Oc for guix-patches@gnu.org; Thu, 20 Jun 2019 03:54:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hdrte-0003JW-U9 for guix-patches@gnu.org; Thu, 20 Jun 2019 03:54:16 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21235) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hdrte-0003FW-Ln for guix-patches@gnu.org; Thu, 20 Jun 2019 03:54:14 -0400 From: Jens =?UTF-8?Q?M=C3=B8lgaard?= Date: Thu, 20 Jun 2019 19:53:51 +1200 Message-ID: <87d0j81yls.fsf@zete.tk> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 36303@debbugs.gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hello guix! This patch adds qtpass, one of the GUIs available for password-store. It should build reproducibly now, and 'guix lint' reports no issues, so should be ready to go. Some notes: - Tests are currently disabled as they seem to need display set. Appears to be the case for a few qt packages. - qmake looks for lrelease-qt5/lupdate-qt5 instead of lrelease/lupdate, and only seems to like the env vars given directly when invoked. lrelease/lupdate in turn need a variable to find qmake. There's possibly a more elegant way of doing this. - Desktop file isn't currently set up; I'll need to look into that. Comments and advice are very welcome (I'm quite 'green')! Happy hacking, Jens M --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-qtpass.patch Content-Transfer-Encoding: quoted-printable From=20cf95cf3b851c09afe7904e512c4a2e6b373db4de Mon Sep 17 00:00:00 2001 From: =3D?UTF-8?q?Jens=3D20M=3DC3=3DB8lgaard?=3D Date: Thu, 20 Jun 2019 19:24:47 +1200 Subject: [PATCH] gnu: Add qtpass. * gnu/packages/password-utils.scm (qtpass): New variable. =2D-- gnu/packages/password-utils.scm | 56 +++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.= scm index ed890f73c3..a3db8fbcdc 100644 =2D-- a/gnu/packages/password-utils.scm +++ b/gnu/packages/password-utils.scm @@ -22,6 +22,7 @@ ;;; Copyright =C2=A9 2018 Pierre Neidhardt ;;; Copyright =C2=A9 2018 Amirouche Boubekki ;;; Copyright =C2=A9 2018 Tim Gesthuizen +;;; Copyright =C2=A9 2019 Jens M=C3=B8lgaard ;;; ;;; This file is part of GNU Guix. ;;; @@ -562,6 +563,61 @@ one-time-password (OTP) secrets, generating OTP codes,= and displaying secret key URIs using the standard otpauth:// scheme.") (license license:gpl3+))) =20 +(define-public qtpass + (package + (name "qtpass") + (version "1.2.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/IJHack/QtPass.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1vfhfyccrxq9snyvayqfzm5rqik8ny2gysyv7nipc91kvhq3bhky")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; Tests require display. + #:phases + (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + ;; lupdate/lrelease need to find qmake. + (setenv "QMAKE" "qmake") + ;; qmake needs to find lrelease/lupdate. + (invoke "qmake" + "QMAKE_LRELEASE=3Dlrelease" + "QMAKE_LUPDATE=3Dlupdate" + (string-append "PREFIX=3D" out))))) + (add-after 'configure 'reset-resource-timestamps + ;; Reset timestamps on localization files for a reproducible bu= ild. + (lambda _ + (with-directory-excursion "localization" + (for-each (lambda (file) + (let* ((base (basename file ".qm")) + (src (string-append base ".ts")) + (st (stat src))) + (set-file-time file st))) + (find-files "." ".*\\.qm"))) + #t))))) + (native-inputs + `(("qttools" ,qttools))) + (inputs + `(("qtbase" ,qtbase) + ("qtsvg" ,qtsvg))) + (home-page "https://qtpass.org") + (synopsis "GUI for password manager password-store") + (description + "Qt-based graphical user interface for the password manager +password-store also known as pass. Can use either pass or gpg to interact +with password-store files. Features configurable password generation, +templates, clipboard handling, and per folder settings for multi-recipient +encryption.") + (license license:gpl3))) + (define-public argon2 (package (name "argon2") =2D-=20 2.22.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE/VzWzPUn4Rzyui0RiZ866GcCScAFAl0LO48ACgkQiZ866GcC ScBMVBAAhspRykDWUUqIlZQs0E5ALWPsAgpAgR8A1umZx8HzFHNJ756Gv2prAwPS fJJgrypKIOjZ94dl11o0LgtvJgYRIQvgxOpuFvdmyISZr2ilm49skuiE7PoYCX++ /rpIMqSHdbFyYnlVNjHV/uOQGXq5gjwrMt0tvZXgbnh12kgS5mb6m3CtCIH69TDD 5gbkjNwQH77ZtTwh8yJomHHhD2h+dN/sVzw31/5l0dEin83kMudNiOcZZJ1MBQKg agUwuBrKabMU0WdYUzYqpMtzZuTXXhWmg3EFM17IcclxStyW4hMWfwty4xNTltwz DXFujvrrv5+CefDOIILT5MKR+1OJB9VWXpQFJbjLJmplKxqByF9T1NKmjs9ouIuH Inc7PKCal0ywlxZHm50uHL/W8+VLTbkQwYrllx2NNMR31MzQtRncqv8Y362C0ob4 vKM8mM1kP1k+t00f1YUfUDQ2fG146fFP5jnaVKQ3vN5QFVc3lK+zQUEcU/YuHbqU yVmgZgyBBYTty2+W0S9IC8CrPPdAwdFPzg1XDPrUsUt+bQPVv2j+VOvhtSSLw3Uc LcLg0Ar17XjwVTiy0cP0xnFlnP3a8kpCnHe5b6clBlyAmWYQoLanh1DpAPqcjPj+ nc9W+pwrIsV28iKuzIDS1IvGJ7XdjPFlu+PGFH0r+K3OZGGIl0g= =x9DY -----END PGP SIGNATURE----- --==-=-=--