Commit | Line | Data |
---|---|---|
233e7676 | 1 | ;;; GNU Guix --- Functional package management for GNU |
0459649e | 2 | ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org> |
a92d9726 | 3 | ;;; Copyright © 2013, 2015, 2018 Andreas Enge <andreas@enge.fr> |
c8e3651a | 4 | ;;; Copyright © 2014, 2018 Eric Bavier <bavier@member.fsf.org> |
e9a442b7 | 5 | ;;; Copyright © 2014, 2015, 2016, 2020 Mark H Weaver <mhw@netris.org> |
5dabdb75 | 6 | ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org> |
9d14a67d | 7 | ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il> |
1d7b8a24 | 8 | ;;; Copyright © 2015, 2016, 2017, 2019 Ricardo Wurmus <rekado@elephly.net> |
a05d1d82 | 9 | ;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org> |
3c986a7d | 10 | ;;; Copyright © 2016, 2017 Nikita <nikita@n0.is> |
41edb23f | 11 | ;;; Copyright © 2016 Christopher Baines <mail@cbaines.net> |
cd9ed6c1 | 12 | ;;; Copyright © 2016 Mike Gerwitz <mtg@gnu.org> |
0f391063 | 13 | ;;; Copyright © 2016 Troy Sankey <sankeytms@gmail.com> |
e5b44b06 | 14 | ;;; Copyright © 2017, 2020 Leo Famulari <leo@famulari.name> |
5aeb6611 | 15 | ;;; Copyright © 2017 Petter <petter@mykolab.ch> |
7e0f9df9 | 16 | ;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr> |
24496210 | 17 | ;;; Copyright © 2018, 2019 Marius Bakke <mbakke@fastmail.com> |
02d83c24 | 18 | ;;; Copyright © 2018 Björn Höfling <bjoern.hoefling@bjoernhoefling.de> |
891fd849 | 19 | ;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com> |
8d1939e4 | 20 | ;;; |
233e7676 | 21 | ;;; This file is part of GNU Guix. |
8d1939e4 | 22 | ;;; |
233e7676 | 23 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
8d1939e4 LC |
24 | ;;; under the terms of the GNU General Public License as published by |
25 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
26 | ;;; your option) any later version. | |
27 | ;;; | |
233e7676 | 28 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
8d1939e4 LC |
29 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
30 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
31 | ;;; GNU General Public License for more details. | |
32 | ;;; | |
33 | ;;; You should have received a copy of the GNU General Public License | |
233e7676 | 34 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
8d1939e4 | 35 | |
1ffa7090 | 36 | (define-module (gnu packages gnupg) |
07157e8a | 37 | #:use-module ((guix licenses) #:prefix license:) |
a05d1d82 | 38 | #:use-module (gnu packages) |
7b40296f | 39 | #:use-module (gnu packages adns) |
c9ce8e17 | 40 | #:use-module (gnu packages autotools) |
34ef5755 | 41 | #:use-module (gnu packages base) |
01e11826 | 42 | #:use-module (gnu packages curl) |
c9ce8e17 | 43 | #:use-module (gnu packages crypto) |
abc4a332 | 44 | #:use-module (gnu packages emacs) |
5e369f8a EF |
45 | #:use-module (gnu packages enlightenment) |
46 | #:use-module (gnu packages gettext) | |
b0cb92b2 | 47 | #:use-module (gnu packages guile) |
01e11826 | 48 | #:use-module (gnu packages openldap) |
ea4d96c6 | 49 | #:use-module (gnu packages perl) |
5ccde207 | 50 | #:use-module (gnu packages perl-check) |
1ffa7090 | 51 | #:use-module (gnu packages pth) |
ea4d96c6 | 52 | #:use-module (gnu packages python) |
44d10b1f | 53 | #:use-module (gnu packages python-xyz) |
54df7558 | 54 | #:use-module (gnu packages qt) |
1ffa7090 | 55 | #:use-module (gnu packages readline) |
07157e8a | 56 | #:use-module (gnu packages compression) |
40d806af LC |
57 | #:use-module (gnu packages gtk) |
58 | #:use-module (gnu packages glib) | |
d1d75c6a | 59 | #:use-module (gnu packages gnome) |
40d806af LC |
60 | #:use-module (gnu packages pkg-config) |
61 | #:use-module (gnu packages ncurses) | |
cd9ed6c1 | 62 | #:use-module (gnu packages security-token) |
cd0322a3 | 63 | #:use-module (gnu packages sqlite) |
e3dd1f0c | 64 | #:use-module (gnu packages swig) |
b0cb92b2 | 65 | #:use-module (gnu packages texinfo) |
a7fd7b68 | 66 | #:use-module (gnu packages tls) |
15b08442 P |
67 | #:use-module (gnu packages tor) |
68 | #:use-module (gnu packages web) | |
2e6618fc | 69 | #:use-module (gnu packages xorg) |
15b08442 | 70 | #:use-module (gnu packages xml) |
8d1939e4 | 71 | #:use-module (guix packages) |
87f5d366 | 72 | #:use-module (guix download) |
0f391063 | 73 | #:use-module (guix git-download) |
14e2e44d | 74 | #:use-module (guix build-system gnu) |
34ef5755 | 75 | #:use-module (guix build-system perl) |
c8e3651a EB |
76 | #:use-module (guix build-system python) |
77 | #:use-module (srfi srfi-1)) | |
8d1939e4 LC |
78 | |
79 | (define-public libgpg-error | |
80 | (package | |
81 | (name "libgpg-error") | |
9640cd97 | 82 | (version "1.37") |
8d1939e4 LC |
83 | (source |
84 | (origin | |
87f5d366 | 85 | (method url-fetch) |
0db342a5 | 86 | (uri (string-append "mirror://gnupg/libgpg-error/libgpg-error-" |
8d1939e4 LC |
87 | version ".tar.bz2")) |
88 | (sha256 | |
89 | (base32 | |
9640cd97 | 90 | "0qwpx8mbc2l421a22l0l1hpzkip9jng06bbzgxwpkkvk5bvnybdk")))) |
8d1939e4 | 91 | (build-system gnu-build-system) |
e373adc1 MO |
92 | (arguments |
93 | (if (%current-target-system) | |
94 | `(#:modules ((ice-9 match) | |
95 | (guix build gnu-build-system) | |
96 | (guix build utils)) | |
97 | #:phases | |
98 | (modify-phases %standard-phases | |
99 | ;; When cross-compiling, some platform specific properties cannot | |
100 | ;; be detected. Create a symlink to the appropriate platform | |
101 | ;; file. See Cross-Compiling section at: | |
102 | ;; https://github.com/gpg/libgpg-error/blob/master/README | |
103 | (add-after 'unpack 'cross-symlinks | |
104 | (lambda* (#:key target inputs #:allow-other-keys) | |
105 | (let ((triplet | |
106 | (match (string-take target | |
107 | (string-index target #\-)) | |
108 | ("armhf" "arm-unknown-linux-gnueabi") | |
e2f973b4 | 109 | ("mips64el" "mips-unknown-linux-gnu") |
e373adc1 MO |
110 | (x |
111 | (string-append x "-unknown-linux-gnu"))))) | |
112 | (symlink | |
113 | (string-append "lock-obj-pub." triplet ".h") | |
114 | "src/syscfg/lock-obj-pub.linux-gnu.h")) | |
115 | #t)))) | |
116 | '())) | |
117 | (native-inputs `(("gettext" ,gettext-minimal))) | |
72fb1b24 | 118 | (home-page "https://gnupg.org") |
35b9e423 | 119 | (synopsis "Library of error values for GnuPG components") |
8d1939e4 LC |
120 | (description |
121 | "Libgpg-error is a small library that defines common error values | |
122 | for all GnuPG components. Among these are GPG, GPGSM, GPGME, | |
123 | GPG-Agent, libgcrypt, Libksba, DirMngr, Pinentry, SmartCard | |
124 | Daemon and possibly more in the future.") | |
63e8bb12 LC |
125 | (license license:lgpl2.0+) |
126 | (properties '((ftp-server . "ftp.gnupg.org") | |
127 | (ftp-directory . "/gcrypt/libgpg-error"))))) | |
8d1939e4 LC |
128 | |
129 | (define-public libgcrypt | |
130 | (package | |
131 | (name "libgcrypt") | |
ba600876 | 132 | (version "1.8.5") |
84a3e3b7 LC |
133 | (source (origin |
134 | (method url-fetch) | |
135 | (uri (string-append "mirror://gnupg/libgcrypt/libgcrypt-" | |
136 | version ".tar.bz2")) | |
137 | (sha256 | |
138 | (base32 | |
ba600876 | 139 | "1hvsazms1bfd769q0ngl0r9g5i4m9mpz9jmvvrdzyzk3rfa2ljiv")))) |
8d1939e4 LC |
140 | (build-system gnu-build-system) |
141 | (propagated-inputs | |
e0932742 | 142 | `(("libgpg-error-host" ,libgpg-error))) |
e766f699 JD |
143 | (native-inputs |
144 | ;; Needed here for the 'gpg-error' program. | |
e0932742 | 145 | `(("libgpg-error-native" ,libgpg-error))) |
e766f699 JD |
146 | (arguments |
147 | ;; The '--with-gpg-error-prefix' argument is needed because otherwise | |
148 | ;; 'configure' uses 'gpg-error-config' to determine the '-L' flag, and | |
149 | ;; the 'gpg-error-config' it runs is the native one---i.e., the wrong one. | |
150 | `(#:configure-flags | |
151 | (list (string-append "--with-gpg-error-prefix=" | |
7e7033d1 JN |
152 | (assoc-ref %build-inputs "libgpg-error-host")) |
153 | ;; When cross-compiling, _gcry_mpih_lshift etc are undefined | |
154 | ,@(if (%current-target-system) '("--disable-asm") | |
155 | '())))) | |
40fed2d8 | 156 | (outputs '("out" "debug")) |
72fb1b24 | 157 | (home-page "https://gnupg.org/") |
f50d2669 | 158 | (synopsis "Cryptographic function library") |
8d1939e4 | 159 | (description |
a22dc0c4 LC |
160 | "Libgcrypt is a general-purpose cryptographic library. It provides the |
161 | standard cryptographic building blocks such as symmetric ciphers, hash | |
162 | algorithms, public key algorithms, large integer functions and random number | |
163 | generation.") | |
63e8bb12 LC |
164 | (license license:lgpl2.0+) |
165 | (properties '((ftp-server . "ftp.gnupg.org") | |
166 | (ftp-directory . "/gcrypt/libgcrypt"))))) | |
8d1939e4 LC |
167 | |
168 | (define-public libassuan | |
169 | (package | |
170 | (name "libassuan") | |
82e61ce2 | 171 | (version "2.5.4") |
8d1939e4 LC |
172 | (source |
173 | (origin | |
87f5d366 | 174 | (method url-fetch) |
0db342a5 | 175 | (uri (string-append "mirror://gnupg/libassuan/libassuan-" |
8d1939e4 LC |
176 | version ".tar.bz2")) |
177 | (sha256 | |
178 | (base32 | |
82e61ce2 | 179 | "1w7vnnycq4z7gf4bk38pi4hrb8qrrzgfpz3cd7frwldxnfbfx060")))) |
8d1939e4 LC |
180 | (build-system gnu-build-system) |
181 | (propagated-inputs | |
5965b083 LF |
182 | `(("libgpg-error" ,libgpg-error) |
183 | ("pth" ,pth))) | |
72fb1b24 | 184 | (home-page "https://gnupg.org") |
8d1939e4 | 185 | (synopsis |
35b9e423 | 186 | "IPC library used by GnuPG and related software") |
8d1939e4 LC |
187 | (description |
188 | "Libassuan is a small library implementing the so-called Assuan | |
189 | protocol. This protocol is used for IPC between most newer | |
190 | GnuPG components. Both, server and client side functions are | |
191 | provided.") | |
63e8bb12 LC |
192 | (license license:lgpl2.0+) |
193 | (properties '((ftp-server . "ftp.gnupg.org") | |
194 | (ftp-directory . "/gcrypt/libassuan"))))) | |
8d1939e4 LC |
195 | |
196 | (define-public libksba | |
197 | (package | |
198 | (name "libksba") | |
c3245a77 | 199 | (version "1.5.0") |
8d1939e4 LC |
200 | (source |
201 | (origin | |
87f5d366 | 202 | (method url-fetch) |
8d1939e4 | 203 | (uri (string-append |
0db342a5 | 204 | "mirror://gnupg/libksba/libksba-" |
8d1939e4 LC |
205 | version ".tar.bz2")) |
206 | (sha256 | |
207 | (base32 | |
c3245a77 | 208 | "1fm0mf3wq9fmyi1rmc1vk2fafn6liiw2mgxml3g7ybbb44lz2jmf")))) |
8d1939e4 LC |
209 | (build-system gnu-build-system) |
210 | (propagated-inputs | |
211 | `(("libgpg-error" ,libgpg-error))) | |
e766f699 JD |
212 | (native-inputs |
213 | `(("libgpg-error" ,libgpg-error))) | |
214 | (arguments | |
215 | `(#:configure-flags | |
216 | (list ,@(if (%current-target-system) | |
217 | '("CC_FOR_BUILD=gcc") | |
218 | '()) | |
219 | (string-append "--with-gpg-error-prefix=" | |
220 | (assoc-ref %build-inputs "libgpg-error"))))) | |
72fb1b24 | 221 | (home-page "https://www.gnupg.org") |
35b9e423 | 222 | (synopsis "CMS and X.509 access library") |
8d1939e4 LC |
223 | (description |
224 | "KSBA (pronounced Kasbah) is a library to make X.509 certificates | |
225 | as well as the CMS easily accessible by other applications. Both | |
226 | specifications are building blocks of S/MIME and TLS.") | |
63e8bb12 LC |
227 | (license license:gpl3+) |
228 | (properties '((ftp-server . "ftp.gnupg.org") | |
229 | (ftp-directory . "/gcrypt/libksba"))))) | |
8d1939e4 | 230 | |
c18ea90f AE |
231 | (define-public npth |
232 | (package | |
233 | (name "npth") | |
b593f264 | 234 | (version "1.6") |
c18ea90f AE |
235 | (source |
236 | (origin | |
b593f264 TGR |
237 | (method url-fetch) |
238 | (uri (string-append "mirror://gnupg/npth/npth-" version ".tar.bz2")) | |
239 | (sha256 | |
240 | (base32 "1lg2lkdd3z1s3rpyf88786l243adrzyk9p4q8z9n41ygmpcsp4qk")))) | |
c18ea90f | 241 | (build-system gnu-build-system) |
72fb1b24 | 242 | (home-page "https://www.gnupg.org") |
c18ea90f AE |
243 | (synopsis "Non-preemptive thread library") |
244 | (description | |
245 | "Npth is a library to provide the GNU Pth API and thus a non-preemptive | |
246 | threads implementation. | |
247 | ||
248 | In contrast to GNU Pth is is based on the system's standard threads | |
249 | implementation. This allows the use of libraries which are not | |
250 | compatible to GNU Pth.") | |
ec3f88af EF |
251 | (license (list license:lgpl3+ license:gpl2+)) ; dual license |
252 | (properties '((ftp-server . "ftp.gnupg.org") | |
253 | (ftp-directory . "/gcrypt/npth"))))) | |
c18ea90f | 254 | |
8d1939e4 LC |
255 | (define-public gnupg |
256 | (package | |
257 | (name "gnupg") | |
c73a7f7d | 258 | (version "2.2.25") |
58970d6a LC |
259 | (source (origin |
260 | (method url-fetch) | |
261 | (uri (string-append "mirror://gnupg/gnupg/gnupg-" version | |
262 | ".tar.bz2")) | |
e5b44b06 | 263 | (patches (search-patches "gnupg-default-pinentry.patch")) |
58970d6a LC |
264 | (sha256 |
265 | (base32 | |
c73a7f7d | 266 | "02n3klqbyzxyil13sg4wa0pcwr7vs7zjaslis926yjxg8yr0fly5")))) |
8d1939e4 | 267 | (build-system gnu-build-system) |
08fa45b1 MW |
268 | (native-inputs |
269 | `(("pkg-config" ,pkg-config))) | |
8d1939e4 | 270 | (inputs |
f02d254a | 271 | `(("gnutls" ,gnutls) |
8d1939e4 LC |
272 | ("libassuan" ,libassuan) |
273 | ("libgcrypt" ,libgcrypt) | |
01e11826 | 274 | ("libgpg-error" ,libgpg-error) |
8d1939e4 | 275 | ("libksba" ,libksba) |
cd064df7 | 276 | ("npth" ,npth) |
01e11826 | 277 | ("openldap" ,openldap) |
cd9ed6c1 | 278 | ("pcsc-lite" ,pcsc-lite) |
2d12284d EF |
279 | ("readline" ,readline) |
280 | ("sqlite" ,sqlite) | |
281 | ("zlib" ,zlib))) | |
30e9cbb4 | 282 | (arguments |
10756b9e | 283 | `(#:configure-flags '(;; Otherwise, the test suite looks for the `gpg` |
f11275c9 LF |
284 | ;; executable in its installation directory in |
285 | ;; /gnu/store before it has been installed. | |
e184de57 EF |
286 | "--enable-gnupg-builddir-envvar" |
287 | "--enable-all-tests") | |
163708a6 | 288 | #:phases |
45477c6a | 289 | (modify-phases %standard-phases |
cd9ed6c1 MG |
290 | (add-before 'configure 'patch-paths |
291 | (lambda* (#:key inputs #:allow-other-keys) | |
cd9ed6c1 MG |
292 | (substitute* "scd/scdaemon.c" |
293 | (("\"(libpcsclite\\.so[^\"]*)\"" _ name) | |
294 | (string-append "\"" (assoc-ref inputs "pcsc-lite") | |
295 | "/lib/" name "\""))) | |
7deb5ee8 LF |
296 | #t)) |
297 | (add-after 'build 'patch-scheme-tests | |
298 | (lambda _ | |
299 | (substitute* (find-files "tests" ".\\.scm$") | |
300 | (("/usr/bin/env gpgscm") | |
764c5662 LF |
301 | (string-append (getcwd) "/tests/gpgscm/gpgscm"))) |
302 | #t)) | |
f11275c9 | 303 | (add-before 'build 'patch-test-paths |
92cc6a58 EF |
304 | (lambda _ |
305 | (substitute* '("tests/inittests" | |
306 | "tests/pkits/inittests" | |
307 | "tests/Makefile" | |
308 | "tests/pkits/common.sh" | |
309 | "tests/pkits/Makefile") | |
310 | (("/bin/pwd") (which "pwd"))) | |
311 | (substitute* "common/t-exectool.c" | |
312 | (("/bin/cat") (which "cat")) | |
313 | (("/bin/true") (which "true")) | |
314 | (("/bin/false") (which "false"))) | |
315 | #t))))) | |
72fb1b24 | 316 | (home-page "https://gnupg.org/") |
f50d2669 | 317 | (synopsis "GNU Privacy Guard") |
8d1939e4 | 318 | (description |
a22dc0c4 LC |
319 | "The GNU Privacy Guard is a complete implementation of the OpenPGP |
320 | standard. It is used to encrypt and sign data and communication. It | |
321 | features powerful key management and the ability to access public key | |
79c311b8 | 322 | servers. It includes several libraries: libassuan (IPC between GnuPG |
58970d6a LC |
323 | components), libgpg-error (centralized GnuPG error values), and |
324 | libskba (working with X.509 certificates and CMS data).") | |
63e8bb12 LC |
325 | (license license:gpl3+) |
326 | (properties '((ftp-server . "ftp.gnupg.org") | |
327 | (ftp-directory . "/gcrypt/gnupg"))))) | |
ea4d96c6 | 328 | |
5249045c MW |
329 | (define-public gnupg-1 |
330 | (package (inherit gnupg) | |
b6c675c6 | 331 | (version "1.4.23") |
58970d6a LC |
332 | (source (origin |
333 | (method url-fetch) | |
334 | (uri (string-append "mirror://gnupg/gnupg/gnupg-" version | |
335 | ".tar.bz2")) | |
336 | (sha256 | |
337 | (base32 | |
b6c675c6 | 338 | "1fkq4sqldvf6a25mm2qz95swv1qjg464736091w51djiwqbjyin9")))) |
08fa45b1 | 339 | (native-inputs '()) |
5249045c | 340 | (inputs |
07157e8a LC |
341 | `(("zlib" ,zlib) |
342 | ("bzip2" ,bzip2) | |
5249045c MW |
343 | ("curl" ,curl) |
344 | ("readline" ,readline) | |
345 | ("libgpg-error" ,libgpg-error))) | |
346 | (arguments | |
29d90757 LF |
347 | `(#:phases |
348 | (modify-phases %standard-phases | |
349 | (add-after 'unpack 'patch-check-sh | |
350 | (lambda _ | |
351 | (substitute* "checks/Makefile.in" | |
b17f7238 MW |
352 | (("/bin/sh") (which "sh"))) |
353 | #t))))))) | |
5249045c | 354 | |
09d5c166 AE |
355 | (define-public gpgme |
356 | (package | |
357 | (name "gpgme") | |
16635556 | 358 | (version "1.15.0") |
09d5c166 AE |
359 | (source |
360 | (origin | |
361 | (method url-fetch) | |
4286a6b0 | 362 | (uri (string-append "mirror://gnupg/gpgme/gpgme-" version ".tar.bz2")) |
09d5c166 | 363 | (sha256 |
16635556 | 364 | (base32 "0nqfipv5s4npfidsm1rs3kpq0r0av9bfqfd5r035jibx5k0jniqb")))) |
09d5c166 | 365 | (build-system gnu-build-system) |
b3ecb3fe LF |
366 | (native-inputs |
367 | `(("gnupg" ,gnupg))) | |
68640c3c MW |
368 | (propagated-inputs |
369 | ;; Needs to be propagated because gpgme.h includes gpg-error.h. | |
7de44023 | 370 | `(("libgpg-error" ,libgpg-error))) |
09d5c166 | 371 | (inputs |
b3ecb3fe | 372 | `(("libassuan" ,libassuan))) |
72fb1b24 | 373 | (home-page "https://www.gnupg.org/related_software/gpgme/") |
35b9e423 | 374 | (synopsis "Library providing simplified access to GnuPG functionality") |
09d5c166 AE |
375 | (description |
376 | "GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG | |
377 | easier for applications. It provides a High-Level Crypto API for encryption, | |
378 | decryption, signing, signature verification and key management. Currently | |
379 | it uses GnuPG as its backend but the API isn't restricted to this engine. | |
380 | ||
381 | Because the direct use of GnuPG from an application can be a complicated | |
382 | programming task, it is suggested that all software should try to use GPGME | |
383 | instead. This way bug fixes or improvements can be done at a central place | |
384 | and every application benefits from this.") | |
11450f15 EF |
385 | (license license:lgpl2.1+) |
386 | (properties '((ftp-server . "ftp.gnupg.org") | |
387 | (ftp-directory . "/gcrypt/gpgme"))))) | |
09d5c166 | 388 | |
6b982a78 HG |
389 | (define-public qgpgme |
390 | (package | |
391 | (inherit gpgme) | |
392 | (name "qgpgme") | |
393 | (arguments | |
394 | `(#:phases | |
395 | (modify-phases %standard-phases | |
396 | (add-before 'build 'chdir-and-symlink | |
397 | (lambda* (#:key inputs #:allow-other-keys) | |
398 | (let ((gpgme (assoc-ref inputs "gpgme"))) | |
399 | (symlink (string-append gpgme "/lib/libgpgmepp.la") | |
400 | "lang/cpp/src/libgpgmepp.la") | |
401 | (symlink (string-append gpgme "/lib/libgpgme.la") | |
402 | "src/libgpgme.la")) | |
403 | (chdir "lang/qt") | |
404 | #t))))) | |
405 | (native-inputs | |
0684f1d6 LF |
406 | `(("pkg-config" ,pkg-config) |
407 | ,@(package-native-inputs gpgme))) | |
6b982a78 HG |
408 | (inputs |
409 | `(("gpgme" ,gpgme) | |
410 | ("qtbase" ,qtbase) | |
411 | ,@(package-inputs gpgme))) | |
412 | (synopsis "Qt API bindings for gpgme") | |
413 | (description "QGpgme provides a very high level Qt API around GpgMEpp. | |
414 | ||
415 | QGpgME was originally developed as part of libkleo and incorporated into | |
416 | gpgpme starting with version 1.7.") | |
417 | (license license:gpl2+))) ;; Note: this differs from gpgme | |
418 | ||
b0cb92b2 LC |
419 | (define-public guile-gcrypt |
420 | (package | |
421 | (name "guile-gcrypt") | |
0459649e | 422 | (version "0.3.0") |
b0cb92b2 LC |
423 | (home-page "https://notabug.org/cwebber/guile-gcrypt") |
424 | (source (origin | |
425 | (method git-fetch) | |
426 | (uri (git-reference | |
427 | (url (string-append home-page ".git")) | |
428 | (commit (string-append "v" version)))) | |
429 | (sha256 | |
430 | (base32 | |
0459649e | 431 | "0m29fg4pdfifnqqsa437zc5c1bhbfh62mc69ba25ak4x2cla41ll")) |
d47f9630 | 432 | (file-name (git-file-name name version)))) |
b0cb92b2 | 433 | (build-system gnu-build-system) |
891fd849 MO |
434 | (arguments |
435 | ;; When cross-compiling, the bash script libgcrypt-config provided by | |
436 | ;; libgcrypt must be accessible during configure phase. | |
437 | `(,@(if (%current-target-system) | |
438 | '(#:phases | |
439 | (modify-phases %standard-phases | |
440 | (add-before 'configure 'add-libgrypt-config | |
441 | (lambda _ | |
442 | (setenv "PATH" (string-append | |
443 | (assoc-ref %build-inputs "libgcrypt") | |
444 | "/bin:" | |
445 | (getenv "PATH"))) | |
446 | #t)))) | |
447 | '()))) | |
b0cb92b2 LC |
448 | (native-inputs |
449 | `(("pkg-config" ,pkg-config) | |
450 | ("autoconf" ,autoconf) | |
451 | ("automake" ,automake) | |
891fd849 | 452 | ("texinfo" ,texinfo) |
cfa4de76 | 453 | ("guile" ,guile-3.0))) |
b0cb92b2 | 454 | (inputs |
b6bee63b | 455 | `(("guile" ,guile-3.0) |
b0cb92b2 | 456 | ("libgcrypt" ,libgcrypt))) |
b0cb92b2 LC |
457 | (synopsis "Cryptography library for Guile using Libgcrypt") |
458 | (description | |
0459649e | 459 | "Guile-Gcrypt provides a Guile interface to a subset of the |
b0cb92b2 LC |
460 | GNU Libgcrypt crytographic library. It provides modules for cryptographic |
461 | hash functions, message authentication codes (MAC), public-key cryptography, | |
462 | strong randomness, and more. It is implemented using the foreign function | |
463 | interface (FFI) of Guile.") | |
464 | (license license:gpl3+))) | |
465 | ||
c8e3651a EB |
466 | (define-public guile2.0-gcrypt |
467 | (package (inherit guile-gcrypt) | |
468 | (name "guile2.0-gcrypt") | |
c7d9abf8 EF |
469 | (native-inputs |
470 | `(("guile" ,guile-2.0) | |
471 | ,@(alist-delete "guile" (package-native-inputs guile-gcrypt)))) | |
c8e3651a EB |
472 | (inputs |
473 | `(("guile" ,guile-2.0) | |
474 | ,@(alist-delete "guile" (package-inputs guile-gcrypt)))))) | |
475 | ||
b6bee63b | 476 | (define-public guile2.2-gcrypt |
89a99d53 LC |
477 | (package |
478 | (inherit guile-gcrypt) | |
b6bee63b | 479 | (name "guile2.2-gcrypt") |
cfa4de76 MB |
480 | (native-inputs |
481 | `(("guile" ,guile-2.2) | |
482 | ,@(alist-delete "guile" (package-native-inputs guile-gcrypt)))) | |
89a99d53 | 483 | (inputs |
b6bee63b | 484 | `(("guile" ,guile-2.2) |
89a99d53 LC |
485 | ,@(alist-delete "guile" (package-inputs guile-gcrypt)))))) |
486 | ||
b6bee63b LC |
487 | (define-public guile3.0-gcrypt |
488 | (deprecated-package "guile3.0-gcrypt" guile-gcrypt)) | |
489 | ||
e3dd1f0c LF |
490 | (define-public python-gpg |
491 | (package | |
492 | (name "python-gpg") | |
fb4fcfab | 493 | (version "1.10.0") |
e3dd1f0c LF |
494 | (source (origin |
495 | (method url-fetch) | |
496 | (uri (pypi-uri "gpg" version)) | |
497 | (sha256 | |
498 | (base32 | |
fb4fcfab | 499 | "1ji3ynhp36m1ccx7bmaq75dhij9frpn19v9mpi4aajn8csl194il")))) |
e3dd1f0c LF |
500 | (build-system python-build-system) |
501 | (arguments | |
fb4fcfab EF |
502 | '(#:phases |
503 | (modify-phases %standard-phases | |
504 | (add-before 'build 'set-environment | |
505 | (lambda _ | |
506 | (substitute* "setup.py" | |
507 | (("cc") (which "gcc"))) | |
508 | #t))) | |
509 | #:tests? #f)) ; No test suite. | |
e3dd1f0c LF |
510 | (inputs |
511 | `(("gpgme" ,gpgme))) | |
512 | (native-inputs | |
513 | `(("swig" ,swig))) | |
514 | (home-page (package-home-page gpgme)) | |
515 | (synopsis "Python bindings for GPGME GnuPG cryptography library") | |
516 | (description "This package provides Python bindings to the GPGME GnuPG | |
517 | cryptographic library. It is developed in the GPGME source code, and then | |
518 | distributed separately.") | |
519 | (license license:lgpl2.1+))) | |
520 | ||
521 | (define-public python2-gpg | |
522 | (package-with-python2 python-gpg)) | |
523 | ||
a05d1d82 CAW |
524 | (define-public python-pygpgme |
525 | (package | |
526 | (name "python-pygpgme") | |
527 | (version "0.3") | |
528 | (source | |
529 | (origin | |
530 | (method url-fetch) | |
531 | (uri (pypi-uri "pygpgme" version)) | |
532 | (sha256 | |
533 | (base32 | |
534 | "1q82p3gs6lwq8j8dxk4pvrwk3jpww1zqcjrzznl9clh10z28gn2z")) | |
535 | ;; Unfortunately, we have to disable some tests due to some gpg-agent | |
536 | ;; goofiness... see: | |
537 | ;; https://bugs.launchpad.net/pygpgme/+bug/999949 | |
1c9cea74 LF |
538 | (patches (search-patches "pygpgme-disable-problematic-tests.patch" |
539 | "python-pygpgme-fix-pinentry-tests.patch")))) | |
a05d1d82 CAW |
540 | (arguments |
541 | `(#:phases | |
542 | (modify-phases %standard-phases | |
543 | (add-before 'build 'make-build | |
9a425d68 | 544 | (lambda _ (invoke "make" "build"))) |
a05d1d82 | 545 | (replace 'check |
9a425d68 | 546 | (lambda _ (invoke "make" "check")))))) |
a05d1d82 | 547 | (build-system python-build-system) |
e6f63412 LF |
548 | (native-inputs |
549 | `(("gnupg" ,gnupg-1))) | |
a05d1d82 | 550 | (inputs |
e6f63412 | 551 | `(("gpgme" ,gpgme))) |
a05d1d82 CAW |
552 | (home-page "https://launchpad.net/pygpgme") |
553 | (synopsis "Python module for working with OpenPGP messages") | |
554 | (description | |
555 | "PyGPGME is a Python module that lets you sign, verify, encrypt and | |
556 | decrypt messages using the OpenPGP format by making use of GPGME.") | |
557 | (license license:lgpl2.1+))) | |
558 | ||
559 | (define-public python2-pygpgme | |
5c31f4aa | 560 | (package-with-python2 python-pygpgme)) |
a05d1d82 | 561 | |
22af9029 RW |
562 | (define-public python-gnupg |
563 | (package | |
564 | (name "python-gnupg") | |
ba704797 | 565 | (version "0.4.4") |
22af9029 RW |
566 | (source |
567 | (origin | |
568 | (method url-fetch) | |
5b669ba1 | 569 | (uri (pypi-uri "python-gnupg" version)) |
22af9029 RW |
570 | (sha256 |
571 | (base32 | |
ba704797 | 572 | "03pvjyp6q9pr8qa22i38az06ddzhvzy5kj192hxa3gbhnchg1nj5")))) |
22af9029 RW |
573 | (build-system python-build-system) |
574 | (arguments | |
575 | `(#:phases | |
576 | (modify-phases %standard-phases | |
577 | (replace 'check | |
ec089763 RW |
578 | (lambda _ |
579 | (substitute* "test_gnupg.py" | |
ec089763 RW |
580 | ;; Unsure why this test fails. |
581 | (("'test_search_keys'") "True") | |
582 | (("def test_search_keys") "def disabled__search_keys")) | |
583 | (setenv "USERNAME" "guixbuilder") | |
584 | ;; The doctests are extremely slow and sometimes time out, | |
585 | ;; so we disable them. | |
b262aba7 TGR |
586 | (invoke "python" |
587 | "test_gnupg.py" "--no-doctests")))))) | |
22af9029 RW |
588 | (native-inputs |
589 | `(("gnupg" ,gnupg-1))) | |
72fb1b24 | 590 | (home-page "https://packages.python.org/python-gnupg/index.html") |
22af9029 RW |
591 | (synopsis "Wrapper for the GNU Privacy Guard") |
592 | (description | |
593 | "This module allows easy access to GnuPG’s key management, encryption | |
594 | and signature functionality from Python programs.") | |
595 | (license license:bsd-3))) | |
596 | ||
597 | (define-public python2-gnupg | |
598 | (package-with-python2 python-gnupg)) | |
599 | ||
34ef5755 CB |
600 | (define-public perl-gnupg-interface |
601 | (package | |
602 | (name "perl-gnupg-interface") | |
603 | (version "0.52") | |
9c2d0a03 RW |
604 | (source (origin |
605 | (method url-fetch) | |
606 | (uri (string-append "mirror://cpan/authors/id/A/AL/ALEXMV/" | |
607 | "GnuPG-Interface-" version ".tar.gz")) | |
608 | (sha256 | |
609 | (base32 | |
610 | "0dgx8yhdsmhkazcrz14n4flrk1afv7azgl003hl4arxvi1d9yyi4")))) | |
34ef5755 CB |
611 | (build-system perl-build-system) |
612 | (arguments | |
9c2d0a03 RW |
613 | `(#:phases |
614 | (modify-phases %standard-phases | |
615 | ;; FIXME: This test fails for unknown reasons | |
616 | (add-after 'unpack 'delete-broken-test | |
617 | (lambda _ | |
618 | (delete-file "t/encrypt_symmetrically.t") | |
619 | #t))))) | |
34ef5755 | 620 | (inputs |
9c2d0a03 | 621 | `(("gnupg" ,gnupg-1))) |
34ef5755 CB |
622 | (propagated-inputs |
623 | `(("perl-moo" ,perl-moo) | |
9c2d0a03 RW |
624 | ("perl-moox-handlesvia" ,perl-moox-handlesvia) |
625 | ("perl-moox-late" ,perl-moox-late))) | |
626 | (native-inputs | |
627 | `(("which" ,which) | |
628 | ("perl-module-install" ,perl-module-install))) | |
9aba9b12 | 629 | (home-page "https://metacpan.org/release/GnuPG-Interface") |
34ef5755 | 630 | (synopsis "Perl interface to GnuPG") |
9c2d0a03 RW |
631 | (description "@code{GnuPG::Interface} and its associated modules are |
632 | designed to provide an object-oriented method for interacting with GnuPG, | |
633 | being able to perform functions such as but not limited to encrypting, | |
634 | signing, decryption, verification, and key-listing parsing.") | |
34ef5755 CB |
635 | (license license:perl-license))) |
636 | ||
ea4d96c6 | 637 | (define-public pius |
cda0ef04 TS |
638 | (package |
639 | (name "pius") | |
4f4b37df | 640 | (version "2.2.7") |
cda0ef04 TS |
641 | (source (origin |
642 | (method url-fetch) | |
643 | (uri (string-append | |
644 | "https://github.com/jaymzh/pius/releases/download/v" | |
645 | version "/pius-" version ".tar.bz2")) | |
646 | (sha256 | |
647 | (base32 | |
4f4b37df | 648 | "1nsl7czicv95j0gfz4s82ys3g3h2mwr6cq3ilid8bpz3iy7z4ipy")))) |
cda0ef04 | 649 | (build-system python-build-system) |
4f4b37df | 650 | (inputs `(("perl" ,perl) ; for 'pius-party-worksheet' |
fcb1dd99 AE |
651 | ("gpg" ,gnupg) |
652 | ("python-six" ,python2-six))) | |
cda0ef04 TS |
653 | (arguments |
654 | `(#:tests? #f | |
4f4b37df | 655 | #:python ,python-2 ; uses the Python 2 'print' syntax |
cda0ef04 TS |
656 | #:phases |
657 | (modify-phases %standard-phases | |
658 | (add-before | |
659 | 'build 'set-gpg-file-name | |
660 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
661 | (let* ((gpg (string-append (assoc-ref inputs "gpg") | |
662 | "/bin/gpg"))) | |
663 | (substitute* "libpius/constants.py" | |
664 | (("/usr/bin/gpg2") gpg)) | |
665 | #t)))))) | |
666 | (synopsis "Programs to simplify GnuPG key signing") | |
667 | (description | |
668 | "Pius (PGP Individual UID Signer) helps attendees of PGP keysigning | |
35b9e423 EB |
669 | parties. It is the main utility and makes it possible to quickly and easily |
670 | sign each UID on a set of PGP keys. It is designed to take the pain out of | |
ea4d96c6 AE |
671 | the sign-all-the-keys part of PGP Keysigning Party while adding security |
672 | to the process. | |
673 | ||
674 | pius-keyring-mgr and pius-party-worksheet help organisers of | |
675 | PGP keysigning parties.") | |
cda0ef04 TS |
676 | (license license:gpl2) |
677 | (home-page "https://www.phildev.net/pius/index.shtml"))) | |
96be765c AE |
678 | |
679 | (define-public signing-party | |
33678041 EF |
680 | (package |
681 | (name "signing-party") | |
cbebccbe | 682 | (version "2.10") |
ca64945e | 683 | (home-page "https://salsa.debian.org/signing-party-team/signing-party") |
33678041 EF |
684 | (source (origin |
685 | (method git-fetch) | |
686 | (uri (git-reference | |
687 | (url home-page) | |
cbebccbe | 688 | (commit (string-append "v" version)))) |
33678041 EF |
689 | (file-name (git-file-name name version)) |
690 | (sha256 | |
691 | (base32 | |
cbebccbe | 692 | "0lq8nmwjmysry0n4jg6vb7bh0lagbyb9pa11ii3s41p1mhzchf2r")))) |
33678041 EF |
693 | (build-system gnu-build-system) |
694 | (native-inputs | |
695 | `(("autoconf" ,autoconf-wrapper) | |
696 | ("automake" ,automake))) | |
697 | (inputs `(("perl" ,perl) | |
698 | ("perl-text-template" ,perl-text-template) | |
699 | ("perl-mime-tools" ,perl-mime-tools) | |
700 | ("perl-gnupg-interface" ,perl-gnupg-interface) | |
701 | ("perl-net-idn-encode" ,perl-net-idn-encode) | |
702 | ("libmd" ,libmd))) | |
703 | (arguments | |
cbebccbe | 704 | `(#:tests? #f ; no test suite |
33678041 EF |
705 | #:phases |
706 | (modify-phases %standard-phases | |
707 | (replace 'configure | |
708 | (lambda* (#:key outputs #:allow-other-keys) | |
709 | (let ((out (assoc-ref outputs "out"))) | |
710 | (substitute* "keyanalyze/Makefile" | |
711 | (("LDLIBS") (string-append "CC=" (which "gcc") "\nLDLIBS"))) | |
712 | (substitute* "keyanalyze/Makefile" | |
713 | (("\\./configure") (string-append "./configure --prefix=" out))) | |
714 | (substitute* "gpgwrap/Makefile" | |
715 | (("\\} clean") | |
716 | (string-append "} clean\ninstall:\n\tinstall -D bin/gpgwrap " | |
717 | out "/bin/gpgwrap\n"))) | |
718 | (substitute* '("gpgsigs/Makefile" "keyanalyze/Makefile" | |
719 | "keylookup/Makefile" "sig2dot/Makefile" | |
720 | "springgraph/Makefile") | |
721 | (("/usr") out)) | |
722 | (setenv "CONFIG_SHELL" (which "sh"))) | |
723 | #t)) | |
724 | (replace 'install | |
725 | (lambda* (#:key outputs #:allow-other-keys #:rest args) | |
726 | (let ((out (assoc-ref outputs "out")) | |
727 | (install (assoc-ref %standard-phases 'install))) | |
728 | (apply install args) | |
729 | (for-each | |
730 | (lambda (dir file) | |
731 | (copy-file (string-append dir "/" file) | |
732 | (string-append out "/bin/" file))) | |
733 | '("caff" "caff" "caff" "gpgdir" "gpg-key2ps" | |
734 | "gpglist" "gpg-mailkeys" "gpgparticipants") | |
735 | '("caff" "pgp-clean" "pgp-fixkey" "gpgdir" "gpg-key2ps" | |
736 | "gpglist" "gpg-mailkeys" "gpgparticipants")) | |
737 | (for-each | |
738 | (lambda (dir file) | |
739 | (copy-file (string-append dir "/" file) | |
740 | (string-append out "/share/man/man1/" file))) | |
741 | '("caff" "caff" "caff" "gpgdir" | |
742 | "gpg-key2ps" "gpglist" "gpg-mailkeys" | |
743 | "gpgparticipants" "gpgsigs" "gpgwrap/doc" | |
744 | "keyanalyze" "keyanalyze/pgpring" "keyanalyze") | |
745 | '("caff.1" "pgp-clean.1" "pgp-fixkey.1" "gpgdir.1" | |
746 | "gpg-key2ps.1" "gpglist.1" "gpg-mailkeys.1" | |
747 | "gpgparticipants.1" "gpgsigs.1" "gpgwrap.1" | |
748 | "process_keys.1" "pgpring.1" "keyanalyze.1"))) | |
749 | #t)) | |
750 | (add-after 'install 'wrap-programs | |
751 | (lambda* (#:key outputs #:allow-other-keys) | |
752 | (let* ((out (assoc-ref outputs "out"))) | |
753 | (wrap-program | |
754 | (string-append out "/bin/caff") | |
755 | `("PERL5LIB" ":" prefix (,(getenv "PERL5LIB"))))) | |
756 | #t))))) | |
757 | (synopsis "Collection of scripts for simplifying gnupg key signing") | |
758 | (description | |
759 | "Signing-party is a collection for all kinds of PGP/GnuPG related things, | |
96be765c | 760 | including tools for signing keys, keyring analysis, and party preparation. |
7ac53403 EF |
761 | @enumerate |
762 | @item caff: CA - Fire and Forget signs and mails a key | |
763 | @item pgp-clean: removes all non-self signatures from key | |
764 | @item pgp-fixkey: removes broken packets from keys | |
765 | @item gpg-mailkeys: simply mail out a signed key to its owner | |
766 | @item gpg-key2ps: generate PostScript file with fingerprint paper strips | |
767 | @item gpgdir: recursive directory encryption tool | |
768 | @item gpglist: show who signed which of your UIDs | |
769 | @item gpgsigs: annotates list of GnuPG keys with already done signatures | |
770 | @item gpgparticipants: create list of party participants for the organiser | |
771 | @item gpgwrap: a passphrase wrapper | |
772 | @item keyanalyze: minimum signing distance (MSD) analysis on keyrings | |
773 | @item keylookup: ncurses wrapper around gpg --search | |
774 | @item sig2dot: converts a list of GnuPG signatures to a .dot file | |
775 | @item springgraph: creates a graph from a .dot file | |
776 | @end enumerate") | |
33678041 EF |
777 | ;; gpl2+ for almost all programs, except for keyanalyze: gpl2 |
778 | ;; and caff and gpgsigs: bsd-3, see | |
779 | ;; http://packages.debian.org/changelogs/pool/main/s/signing-party/current/copyright | |
780 | (license license:gpl2))) | |
40d806af | 781 | |
c607b701 | 782 | (define-public pinentry-tty |
40d806af | 783 | (package |
c607b701 | 784 | (name "pinentry-tty") |
4498cbd7 | 785 | (version "1.1.0") |
40d806af LC |
786 | (source (origin |
787 | (method url-fetch) | |
788 | (uri (string-append "mirror://gnupg/pinentry/pinentry-" | |
789 | version ".tar.bz2")) | |
790 | (sha256 | |
791 | (base32 | |
4498cbd7 | 792 | "0w35ypl960pczg5kp6km3dyr000m1hf0vpwwlh72jjkjza36c1v8")))) |
40d806af | 793 | (build-system gnu-build-system) |
c607b701 EF |
794 | (arguments |
795 | `(#:configure-flags '("--enable-pinentry-tty"))) | |
40d806af LC |
796 | (inputs |
797 | `(("ncurses" ,ncurses) | |
18ed97d6 | 798 | ("libassuan" ,libassuan) |
c607b701 | 799 | ("libsecret" ,libsecret "out"))) |
40d806af LC |
800 | (native-inputs |
801 | `(("pkg-config" ,pkg-config))) | |
547cb17d | 802 | (home-page "https://gnupg.org/aegypten2/") |
40d806af LC |
803 | (synopsis "GnuPG's interface to passphrase input") |
804 | (description | |
c607b701 | 805 | "Pinentry provides a console that allows users to enter a passphrase when |
9614897b | 806 | @code{gpg} is run and needs it.") |
f8457932 LC |
807 | (license license:gpl2+) |
808 | (properties '((ftp-server . "ftp.gnupg.org") | |
809 | (ftp-directory . "/gcrypt/pinentry") | |
810 | (upstream-name . "pinentry"))))) | |
4380a7b4 | 811 | |
abc4a332 PN |
812 | (define-public pinentry-emacs |
813 | (package | |
814 | (inherit pinentry-tty) | |
815 | (name "pinentry-emacs") | |
816 | (arguments | |
817 | `(#:configure-flags '("--enable-pinentry-emacs"))) | |
818 | (description | |
819 | "Pinentry provides a console and an Emacs interface that allows users to | |
820 | enter a passphrase when required by @code{gpg} or other software."))) | |
821 | ||
c607b701 EF |
822 | (define-public pinentry-gtk2 |
823 | (package | |
824 | (inherit pinentry-tty) | |
825 | (name "pinentry-gtk2") | |
c9a6c0c6 EF |
826 | (arguments |
827 | `(#:configure-flags '("--enable-fallback-curses"))) | |
c607b701 EF |
828 | (inputs |
829 | `(("gtk+" ,gtk+-2) | |
830 | ("glib" ,glib) | |
831 | ,@(package-inputs pinentry-tty))) | |
832 | (description | |
833 | "Pinentry provides a console and a GTK+ GUI that allows users to enter a | |
9614897b | 834 | passphrase when @code{gpg} is run and needs it."))) |
c607b701 | 835 | |
41edb23f CB |
836 | (define-public pinentry-gnome3 |
837 | (package | |
838 | (inherit pinentry-tty) | |
839 | (name "pinentry-gnome3") | |
840 | (inputs | |
841 | `(("gtk+" ,gtk+-2) | |
842 | ("gcr" ,gcr) | |
843 | ("glib" ,glib) | |
844 | ,@(package-inputs pinentry-tty))) | |
845 | (arguments | |
c9a6c0c6 EF |
846 | `(#:configure-flags '("--enable-pinentry-gnome3" |
847 | "--enable-fallback-curses"))) | |
41edb23f CB |
848 | (description |
849 | "Pinentry provides a console and a GUI designed for use with GNOME@tie{}3 | |
850 | that allows users to enter a passphrase when required by @code{gpg} or other | |
851 | software."))) | |
c607b701 | 852 | |
54df7558 EF |
853 | (define-public pinentry-qt |
854 | (package | |
855 | (inherit pinentry-tty) | |
856 | (name "pinentry-qt") | |
c9a6c0c6 EF |
857 | (arguments |
858 | `(#:configure-flags '("--enable-fallback-curses"))) | |
54df7558 | 859 | (inputs |
e2788cef | 860 | `(("qtbase" ,qtbase) |
54df7558 EF |
861 | ,@(package-inputs pinentry-tty))) |
862 | (description | |
863 | "Pinentry provides a console and a Qt GUI that allows users to enter a | |
9614897b | 864 | passphrase when @code{gpg} is run and needs it."))) |
54df7558 | 865 | |
5e369f8a EF |
866 | (define-public pinentry-efl |
867 | (package | |
868 | (inherit pinentry-tty) | |
869 | (name "pinentry-efl") | |
870 | (source | |
871 | (origin | |
872 | (inherit (package-source pinentry-tty)) | |
873 | (patches (search-patches "pinentry-efl.patch")))) | |
874 | (arguments | |
c9a6c0c6 EF |
875 | '(#:configure-flags '("--enable-pinentry-efl" |
876 | "--enable-fallback-curses") | |
5e369f8a EF |
877 | #:phases |
878 | (modify-phases %standard-phases | |
879 | (replace 'bootstrap | |
880 | (lambda _ | |
881 | (invoke "sh" "autogen.sh")))))) | |
882 | (native-inputs | |
883 | `(("autoconf" ,autoconf) | |
884 | ("automake" ,automake) | |
885 | ("gettext" ,gettext-minimal) | |
886 | ,@(package-native-inputs pinentry-tty))) | |
887 | (inputs | |
888 | `(("efl" ,efl) | |
889 | ,@(package-inputs pinentry-tty))) | |
890 | (description | |
891 | "Pinentry provides a console and a graphical interface for the | |
892 | @dfn{Enlightenment Foundation Libraries} (EFL) that allows users to enter a | |
893 | passphrase when @code{gpg} is run and needs it."))) | |
894 | ||
940f8d39 EF |
895 | (define-public pinentry |
896 | (package (inherit pinentry-gtk2) | |
897 | (name "pinentry"))) | |
898 | ||
4380a7b4 EB |
899 | (define-public paperkey |
900 | (package | |
901 | (name "paperkey") | |
abe08256 | 902 | (version "1.6") |
4380a7b4 EB |
903 | (source (origin |
904 | (method url-fetch) | |
9530c4bf | 905 | (uri (string-append "https://www.jabberwocky.com/" |
4380a7b4 EB |
906 | "software/paperkey/paperkey-" |
907 | version ".tar.gz")) | |
908 | (sha256 | |
909 | (base32 | |
abe08256 | 910 | "1xq5gni6gksjkd5avg0zpd73vsr97appksfx0gx2m38s4w9zsid2")))) |
4380a7b4 EB |
911 | (build-system gnu-build-system) |
912 | (arguments | |
913 | `(#:phases | |
e379d85c EF |
914 | (modify-phases %standard-phases |
915 | (add-before 'check 'patch-check-scripts | |
916 | (lambda _ | |
917 | (substitute* '("checks/roundtrip.sh" | |
918 | "checks/roundtrip-raw.sh") | |
919 | (("/bin/echo") "echo")) | |
920 | #t))))) | |
9530c4bf | 921 | (home-page "https://www.jabberwocky.com/software/paperkey/") |
4380a7b4 EB |
922 | (synopsis "Backup OpenPGP keys to paper") |
923 | (description | |
924 | "Paperkey extracts the secret bytes from an OpenPGP (GnuPG, PGP, etc) key | |
925 | for printing with paper and ink, which have amazingly long retention | |
926 | qualities. To reconstruct a secret key, you re-enter those | |
927 | bytes (whether by hand, OCR, QR code, or the like) and paperkey can use | |
928 | them to transform your existing public key into a secret key.") | |
07157e8a | 929 | (license license:gpl2+))) |
8384499c | 930 | |
ba7bd6c6 VC |
931 | (define-public pgpdump |
932 | (package | |
933 | (name "pgpdump") | |
934 | (version "0.33") | |
935 | (source | |
936 | (origin | |
937 | (method url-fetch) | |
938 | (uri (string-append "https://www.mew.org/~kazu/proj/pgpdump/pgpdump-" | |
939 | version ".tar.gz")) | |
940 | (sha256 | |
941 | (base32 "1j001jra2m89n6cys3n0hs574bipjdzfxhzpnd4jfyv95mqwl7n4")))) | |
942 | (build-system gnu-build-system) | |
943 | (arguments | |
944 | `(#:tests? #f ; no make check | |
945 | #:configure-flags (list "--prefix=/") | |
946 | #:make-flags (list "CC=gcc" | |
947 | (string-append "DESTDIR=" (assoc-ref %outputs "out"))))) | |
948 | (inputs | |
949 | `(("zlib" ,zlib))) | |
950 | (home-page "https://www.mew.org/~kazu/proj/pgpdump/en/") | |
951 | (synopsis "PGP packet visualizer") | |
952 | (description "pgpdump displays the sequence of OpenPGP or PGP version 2 | |
953 | packets from a file. | |
954 | ||
955 | The output of this command is similar to GnuPG's list packets command, | |
956 | however, pgpdump produces more detailed and easier to understand output.") | |
957 | (license license:bsd-3))) | |
958 | ||
8384499c | 959 | (define-public gpa |
960 | (package | |
961 | (name "gpa") | |
ee755b70 | 962 | (version "0.10.0") |
8384499c | 963 | (source (origin |
964 | (method url-fetch) | |
965 | (uri (string-append "mirror://gnupg/gpa/" | |
966 | name "-" version ".tar.bz2")) | |
967 | (sha256 | |
968 | (base32 | |
ee755b70 | 969 | "1cbpc45f8qbdkd62p12s3q2rdq6fa5xdzwmcwd3xrj55bzkspnwm")))) |
8384499c | 970 | (build-system gnu-build-system) |
ea2a180f BW |
971 | (arguments |
972 | `(#:phases | |
973 | (modify-phases %standard-phases | |
974 | (add-after 'install 'wrap-program | |
975 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
976 | (let ((out (assoc-ref outputs "out")) | |
977 | (gnupg (assoc-ref inputs "gnupg"))) | |
978 | (wrap-program (string-append out "/bin/gpa") | |
979 | `("PATH" ":" prefix (,(string-append gnupg "/bin")))) | |
980 | #t)))))) | |
8384499c | 981 | (native-inputs |
982 | `(("pkg-config" ,pkg-config))) | |
983 | (inputs | |
984 | `(("gnupg" ,gnupg) | |
985 | ("gpgme" ,gpgme) | |
986 | ("libassuan" ,libassuan) | |
987 | ("libgpg-error" ,libgpg-error) | |
988 | ("gtk+-2" ,gtk+-2))) | |
989 | (home-page "https://gnupg.org/software/gpa/") | |
990 | (synopsis "Graphical user interface for GnuPG") | |
991 | (description | |
992 | "GPA, the GNU Privacy Assistant, is a graphical user interface for | |
993 | @uref{https://gnupg.org, GnuPG}. It can be used to encrypt, decrypt, and sign | |
994 | files, to verify signatures, and to manage the private and public keys.") | |
9a451a67 EF |
995 | (license license:gpl3+) |
996 | (properties '((ftp-server . "ftp.gnupg.org") | |
997 | (ftp-directory . "/gcrypt/gpa"))))) | |
5aeb6611 | 998 | |
15b08442 P |
999 | (define-public parcimonie |
1000 | (package | |
1001 | (name "parcimonie") | |
2e6618fc | 1002 | (version "0.11.0") |
15b08442 P |
1003 | (source (origin |
1004 | (method url-fetch) | |
9062fde4 EF |
1005 | (uri (string-append "https://gaffer.boum.org/intrigeri/files/" |
1006 | "parcimonie/App-Parcimonie-" | |
15b08442 P |
1007 | version ".tar.gz")) |
1008 | (sha256 | |
1009 | (base32 | |
2e6618fc | 1010 | "14pvapvzrxh1yh8zgcj1llmc2dd8g1fgzskxlja21gmw8c88aqdk")))) |
15b08442 P |
1011 | (build-system perl-build-system) |
1012 | (inputs | |
2e6618fc | 1013 | `(("gnupg" ,gnupg) |
15b08442 P |
1014 | ("perl-config-general" ,perl-config-general) |
1015 | ("perl-clone" ,perl-clone) | |
1016 | ("perl-data" ,perl-data) | |
1017 | ("perl-exporter-tiny" ,perl-exporter-tiny) | |
1018 | ("perl-file-homedir" ,perl-file-homedir) | |
1019 | ("perl-file-sharedir" ,perl-file-sharedir) | |
1020 | ("perl-file-which" ,perl-file-which) | |
1021 | ("perl-getopt-long-descriptive" ,perl-getopt-long-descriptive) | |
1022 | ("perl-gnupg-interface" ,perl-gnupg-interface) | |
1023 | ("perl-ipc-system-simple" ,perl-ipc-system-simple) | |
1024 | ("perl-list-moreutils" ,perl-list-moreutils) | |
1025 | ("perl-libintl-perl" ,perl-libintl-perl) ; Locale::TextDomain | |
1026 | ("perl-lwp-online" ,perl-lwp-online) | |
1027 | ("perl-module-build" ,perl-module-build) | |
1028 | ("perl-module-pluggable-object" ,perl-module-pluggable) | |
1029 | ("perl-moo" ,perl-moo) | |
1030 | ("perl-moox-handlesvia" ,perl-moox-handlesvia) | |
1031 | ("perl-moox-late" ,perl-moox-late) | |
1032 | ("perl-moox-options" ,perl-moox-options) | |
2e6618fc | 1033 | ("perl-moox-strictconstructor" ,perl-moox-strictconstructor) |
15b08442 P |
1034 | ("perl-namespace-clean" ,perl-namespace-clean) |
1035 | ("perl-net-dbus" ,perl-net-dbus) | |
1036 | ("perl-net-dbus-glib" ,perl-net-dbus-glib) | |
1037 | ("perl-path-tiny" ,perl-path-tiny) | |
2e6618fc | 1038 | ("perl-strictures" ,perl-strictures-2) |
15b08442 P |
1039 | ("perl-test-most" ,perl-test-most) |
1040 | ("perl-test-trap" ,perl-test-trap) | |
1041 | ("perl-time-duration" ,perl-time-duration) | |
1042 | ("perl-time-duration-parse" ,perl-time-duration-parse) | |
1043 | ("perl-try-tiny" ,perl-try-tiny) | |
1044 | ("perl-type-tiny" ,perl-type-tiny) | |
1045 | ("perl-types-path-tiny" ,perl-types-path-tiny) | |
1046 | ("perl-unicode-linebreak" ,perl-unicode-linebreak) | |
1047 | ("perl-xml-parser" ,perl-xml-parser) | |
1048 | ("perl-xml-twig" ,perl-xml-twig) | |
1049 | ("torsocks" ,torsocks))) | |
2e6618fc | 1050 | (native-inputs |
ff337525 | 1051 | `(("xorg-server" ,xorg-server-for-tests))) |
15b08442 P |
1052 | (arguments |
1053 | `(#:phases | |
1054 | (modify-phases %standard-phases | |
1055 | ;; Needed for using gpg-connect-agent during tests. | |
2e6618fc EF |
1056 | (add-before 'check 'prepare-for-tests |
1057 | (lambda* (#:key inputs #:allow-other-keys) | |
1058 | (let ((xorg-server (assoc-ref inputs "xorg-server"))) | |
1059 | (system (string-append xorg-server "/bin/Xvfb :1 &")) | |
1060 | (setenv "DISPLAY" ":1") | |
1061 | (setenv "HOME" "/tmp") | |
1062 | ;; These tests are known to fail | |
1063 | (delete-file "t/32-keyserver_defined_on_command_line.t") | |
1064 | (delete-file "t/33-checkGpgHasDefinedKeyserver.t") | |
1065 | ;; The applet is deprecated upstream. | |
1066 | (delete-file "t/00-load_all.t") | |
1067 | #t))) | |
15b08442 P |
1068 | (add-before 'install 'fix-references |
1069 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
1070 | (substitute* "lib/App/Parcimonie/GnuPG/Interface.pm" | |
15b08442 | 1071 | ;; Skip check whether dependencies are in the PATH |
2e6618fc | 1072 | (("defined which.*") "")) |
15b08442 P |
1073 | #t)) |
1074 | (add-after 'install 'wrap-program | |
1075 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
1076 | (let* ((out (assoc-ref outputs "out")) | |
1077 | (perllib (string-append out "/lib/perl5/site_perl/" | |
1078 | ,(package-version perl)))) | |
1079 | (wrap-program (string-append out "/bin/parcimonie") | |
1080 | `("PERL5LIB" ":" | |
1081 | prefix (,(string-append perllib ":" (getenv "PERL5LIB"))))) | |
1082 | #t)))))) | |
9062fde4 | 1083 | (home-page "https://gaffer.boum.org/intrigeri/code/parcimonie/") |
15b08442 P |
1084 | (synopsis "Incrementally refreshes a GnuPG keyring") |
1085 | (description "Parcimonie incrementaly refreshes a GnuPG keyring in a way | |
1086 | that makes it hard to correlate the keyring content to an individual, and | |
1087 | makes it hard to locate an individual based on an identifying subset of her | |
1088 | keyring content. Parcimonie is a daemon that fetches one key at a time using | |
1089 | the Tor network, waits a bit, changes the Tor circuit being used, and starts | |
1090 | over.") | |
1091 | (license license:gpl1+))) | |
607d280e EF |
1092 | |
1093 | (define-public jetring | |
1094 | (package | |
1095 | (name "jetring") | |
7da1e8f9 | 1096 | (version "0.29") |
607d280e EF |
1097 | (source |
1098 | (origin | |
7da1e8f9 EF |
1099 | (method git-fetch) |
1100 | (uri (git-reference | |
1101 | (url "https://salsa.debian.org/debian/jetring") | |
1102 | (commit (string-append "debian/" version)))) | |
1103 | (file-name (git-file-name name version)) | |
607d280e EF |
1104 | (sha256 |
1105 | (base32 | |
7da1e8f9 | 1106 | "1acbx2vnbkms1c0wgcnh05d4g359sg5z0aiw541vx2qq9sgdhlv6")))) |
607d280e EF |
1107 | (build-system gnu-build-system) |
1108 | (arguments | |
1109 | '(#:phases | |
1110 | (modify-phases %standard-phases | |
1111 | (delete 'configure) ; no configure script | |
1112 | (add-before 'install 'hardlink-gnupg | |
1113 | (lambda* (#:key inputs #:allow-other-keys) | |
1114 | (let ((gpg (string-append (assoc-ref inputs "gnupg") | |
1115 | "/bin/gpg"))) | |
1116 | (substitute* (find-files "." "jetring-[[:alpha:]]+$") | |
1117 | (("gpg -") (string-append gpg " -")) | |
1118 | (("\\\"gpg\\\"") (string-append "\"" gpg "\""))) | |
1119 | #t))) | |
1120 | (replace 'install | |
1121 | (lambda* (#:key outputs #:allow-other-keys) | |
1122 | (let* ((out (assoc-ref outputs "out")) | |
1123 | (man (string-append out "/share/man"))) | |
1124 | (for-each (lambda (file) | |
1125 | (install-file file (string-append out "/bin/"))) | |
1126 | (find-files "." "jetring-[[:alpha:]]+$")) | |
1127 | (for-each (lambda (file) | |
1128 | (install-file file (string-append man "/man1/"))) | |
1129 | (find-files "." ".*\\.1$")) | |
1130 | (install-file "jetring.7" (string-append man "/man7/")) | |
1131 | #t)))) | |
1132 | #:tests? #f)) ; no test phase | |
1133 | (inputs | |
1134 | `(("gnupg" ,gnupg) | |
1135 | ("perl" ,perl))) | |
1136 | (home-page "https://joeyh.name/code/jetring/") | |
1137 | (synopsis "GnuPG keyring maintenance using changesets") | |
1138 | (description | |
1139 | "Jetring is a collection of tools that allow for gpg keyrings to be | |
1140 | maintained using changesets. It was developed with the Debian keyring in mind, | |
1141 | and aims to solve the problem that a gpg keyring is a binary blob that's hard | |
1142 | for multiple people to collaboratively edit. | |
1143 | ||
1144 | With jetring, changesets can be submitted, reviewed to see exactly what they | |
1145 | will do, applied, and used to build a keyring. The origin of every change made | |
1146 | to the keyring is available for auditing, and gpg signatures can be used for | |
1147 | integrity guarantees.") | |
1148 | (license license:gpl2+))) |