Commit | Line | Data |
---|---|---|
233e7676 | 1 | ;;; GNU Guix --- Functional package management for GNU |
f8457932 | 2 | ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org> |
a02ee3d7 | 3 | ;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr> |
4380a7b4 | 4 | ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org> |
3a7261bf | 5 | ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org> |
5dabdb75 | 6 | ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org> |
8e71d661 | 7 | ;;; Copyright © 2015, 2016, 2017 Efraim Flashner <efraim@flashner.co.il> |
5aeb6611 | 8 | ;;; Copyright © 2015, 2016, 2017 Ricardo Wurmus <rekado@elephly.net> |
a05d1d82 | 9 | ;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org> |
8384499c | 10 | ;;; Copyright © 2016, 2017 ng0 <ng0@infotropique.org> |
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> |
e3dd1f0c | 14 | ;;; Copyright © 2017 Leo Famulari <leo@famulari.name> |
5aeb6611 | 15 | ;;; Copyright © 2017 Petter <petter@mykolab.ch> |
8d1939e4 | 16 | ;;; |
233e7676 | 17 | ;;; This file is part of GNU Guix. |
8d1939e4 | 18 | ;;; |
233e7676 | 19 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
8d1939e4 LC |
20 | ;;; under the terms of the GNU General Public License as published by |
21 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
22 | ;;; your option) any later version. | |
23 | ;;; | |
233e7676 | 24 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
8d1939e4 LC |
25 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
26 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
27 | ;;; GNU General Public License for more details. | |
28 | ;;; | |
29 | ;;; You should have received a copy of the GNU General Public License | |
233e7676 | 30 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
8d1939e4 | 31 | |
1ffa7090 | 32 | (define-module (gnu packages gnupg) |
07157e8a | 33 | #:use-module ((guix licenses) #:prefix license:) |
a05d1d82 | 34 | #:use-module (gnu packages) |
7b40296f | 35 | #:use-module (gnu packages adns) |
c9ce8e17 | 36 | #:use-module (gnu packages autotools) |
34ef5755 | 37 | #:use-module (gnu packages base) |
01e11826 | 38 | #:use-module (gnu packages curl) |
c9ce8e17 | 39 | #:use-module (gnu packages crypto) |
01e11826 | 40 | #:use-module (gnu packages openldap) |
ea4d96c6 | 41 | #:use-module (gnu packages perl) |
5ccde207 | 42 | #:use-module (gnu packages perl-check) |
1ffa7090 | 43 | #:use-module (gnu packages pth) |
ea4d96c6 | 44 | #:use-module (gnu packages python) |
54df7558 | 45 | #:use-module (gnu packages qt) |
1ffa7090 | 46 | #:use-module (gnu packages readline) |
07157e8a | 47 | #:use-module (gnu packages compression) |
2d12284d | 48 | #:use-module (gnu packages databases) |
40d806af LC |
49 | #:use-module (gnu packages gtk) |
50 | #:use-module (gnu packages glib) | |
d1d75c6a | 51 | #:use-module (gnu packages gnome) |
40d806af LC |
52 | #:use-module (gnu packages pkg-config) |
53 | #:use-module (gnu packages ncurses) | |
cd9ed6c1 | 54 | #:use-module (gnu packages security-token) |
e3dd1f0c | 55 | #:use-module (gnu packages swig) |
a7fd7b68 | 56 | #:use-module (gnu packages tls) |
15b08442 P |
57 | #:use-module (gnu packages tor) |
58 | #:use-module (gnu packages web) | |
59 | #:use-module (gnu packages xml) | |
8d1939e4 | 60 | #:use-module (guix packages) |
87f5d366 | 61 | #:use-module (guix download) |
0f391063 | 62 | #:use-module (guix git-download) |
14e2e44d | 63 | #:use-module (guix build-system gnu) |
34ef5755 | 64 | #:use-module (guix build-system perl) |
14e2e44d | 65 | #:use-module (guix build-system python)) |
8d1939e4 LC |
66 | |
67 | (define-public libgpg-error | |
68 | (package | |
69 | (name "libgpg-error") | |
8e71d661 | 70 | (version "1.27") |
8d1939e4 LC |
71 | (source |
72 | (origin | |
87f5d366 | 73 | (method url-fetch) |
0db342a5 | 74 | (uri (string-append "mirror://gnupg/libgpg-error/libgpg-error-" |
8d1939e4 LC |
75 | version ".tar.bz2")) |
76 | (sha256 | |
77 | (base32 | |
8e71d661 | 78 | "1li95ni122fzinzlmxbln63nmgij63irxfvi52ws4zfbzv3am4sg")))) |
8d1939e4 | 79 | (build-system gnu-build-system) |
72fb1b24 | 80 | (home-page "https://gnupg.org") |
35b9e423 | 81 | (synopsis "Library of error values for GnuPG components") |
8d1939e4 LC |
82 | (description |
83 | "Libgpg-error is a small library that defines common error values | |
84 | for all GnuPG components. Among these are GPG, GPGSM, GPGME, | |
85 | GPG-Agent, libgcrypt, Libksba, DirMngr, Pinentry, SmartCard | |
86 | Daemon and possibly more in the future.") | |
63e8bb12 LC |
87 | (license license:lgpl2.0+) |
88 | (properties '((ftp-server . "ftp.gnupg.org") | |
89 | (ftp-directory . "/gcrypt/libgpg-error"))))) | |
8d1939e4 LC |
90 | |
91 | (define-public libgcrypt | |
92 | (package | |
08cba8cc | 93 | (replacement libgcrypt/fixed) |
8d1939e4 | 94 | (name "libgcrypt") |
6b86ad15 | 95 | (version "1.7.8") |
84a3e3b7 LC |
96 | (source (origin |
97 | (method url-fetch) | |
98 | (uri (string-append "mirror://gnupg/libgcrypt/libgcrypt-" | |
99 | version ".tar.bz2")) | |
100 | (sha256 | |
101 | (base32 | |
6b86ad15 | 102 | "16f1rsv4y4w2pk1il2jbcqggsb6mrlfva5vayd205fp68zm7d0ll")))) |
8d1939e4 LC |
103 | (build-system gnu-build-system) |
104 | (propagated-inputs | |
e0932742 | 105 | `(("libgpg-error-host" ,libgpg-error))) |
e766f699 JD |
106 | (native-inputs |
107 | ;; Needed here for the 'gpg-error' program. | |
e0932742 | 108 | `(("libgpg-error-native" ,libgpg-error))) |
e766f699 JD |
109 | (arguments |
110 | ;; The '--with-gpg-error-prefix' argument is needed because otherwise | |
111 | ;; 'configure' uses 'gpg-error-config' to determine the '-L' flag, and | |
112 | ;; the 'gpg-error-config' it runs is the native one---i.e., the wrong one. | |
113 | `(#:configure-flags | |
114 | (list (string-append "--with-gpg-error-prefix=" | |
e0932742 | 115 | (assoc-ref %build-inputs "libgpg-error-host"))))) |
40fed2d8 | 116 | (outputs '("out" "debug")) |
72fb1b24 | 117 | (home-page "https://gnupg.org/") |
f50d2669 | 118 | (synopsis "Cryptographic function library") |
8d1939e4 | 119 | (description |
a22dc0c4 LC |
120 | "Libgcrypt is a general-purpose cryptographic library. It provides the |
121 | standard cryptographic building blocks such as symmetric ciphers, hash | |
122 | algorithms, public key algorithms, large integer functions and random number | |
123 | generation.") | |
63e8bb12 LC |
124 | (license license:lgpl2.0+) |
125 | (properties '((ftp-server . "ftp.gnupg.org") | |
126 | (ftp-directory . "/gcrypt/libgcrypt"))))) | |
8d1939e4 | 127 | |
08cba8cc EF |
128 | (define libgcrypt/fixed |
129 | (package | |
130 | (inherit libgcrypt) | |
131 | (version "1.8.1") | |
132 | (source (origin | |
133 | (method url-fetch) | |
134 | (uri (string-append "mirror://gnupg/libgcrypt/libgcrypt-" | |
135 | version ".tar.bz2")) | |
136 | (sha256 | |
137 | (base32 | |
138 | "1cvqd9jk5qshbh48yh3ixw4zyr4n5k50r3475rrh20xfn7w7aa3s")))))) | |
139 | ||
8d1939e4 LC |
140 | (define-public libassuan |
141 | (package | |
142 | (name "libassuan") | |
5965b083 | 143 | (version "2.5.1") |
8d1939e4 LC |
144 | (source |
145 | (origin | |
87f5d366 | 146 | (method url-fetch) |
0db342a5 | 147 | (uri (string-append "mirror://gnupg/libassuan/libassuan-" |
8d1939e4 LC |
148 | version ".tar.bz2")) |
149 | (sha256 | |
150 | (base32 | |
5965b083 | 151 | "0jb4nb4nrjr949gd3lw8lh4v5d6qigxaq6xwy24w5apjnhvnrya7")))) |
8d1939e4 LC |
152 | (build-system gnu-build-system) |
153 | (propagated-inputs | |
5965b083 LF |
154 | `(("libgpg-error" ,libgpg-error) |
155 | ("pth" ,pth))) | |
72fb1b24 | 156 | (home-page "https://gnupg.org") |
8d1939e4 | 157 | (synopsis |
35b9e423 | 158 | "IPC library used by GnuPG and related software") |
8d1939e4 LC |
159 | (description |
160 | "Libassuan is a small library implementing the so-called Assuan | |
161 | protocol. This protocol is used for IPC between most newer | |
162 | GnuPG components. Both, server and client side functions are | |
163 | provided.") | |
63e8bb12 LC |
164 | (license license:lgpl2.0+) |
165 | (properties '((ftp-server . "ftp.gnupg.org") | |
166 | (ftp-directory . "/gcrypt/libassuan"))))) | |
8d1939e4 LC |
167 | |
168 | (define-public libksba | |
169 | (package | |
170 | (name "libksba") | |
c95f7160 | 171 | (version "1.3.5") |
8d1939e4 LC |
172 | (source |
173 | (origin | |
87f5d366 | 174 | (method url-fetch) |
8d1939e4 | 175 | (uri (string-append |
0db342a5 | 176 | "mirror://gnupg/libksba/libksba-" |
8d1939e4 LC |
177 | version ".tar.bz2")) |
178 | (sha256 | |
179 | (base32 | |
c95f7160 | 180 | "0h53q4sns1jz1pkmhcz5wp9qrfn9f5g9i3vjv6dafwzzlvblyi21")))) |
8d1939e4 LC |
181 | (build-system gnu-build-system) |
182 | (propagated-inputs | |
183 | `(("libgpg-error" ,libgpg-error))) | |
e766f699 JD |
184 | (native-inputs |
185 | `(("libgpg-error" ,libgpg-error))) | |
186 | (arguments | |
187 | `(#:configure-flags | |
188 | (list ,@(if (%current-target-system) | |
189 | '("CC_FOR_BUILD=gcc") | |
190 | '()) | |
191 | (string-append "--with-gpg-error-prefix=" | |
192 | (assoc-ref %build-inputs "libgpg-error"))))) | |
72fb1b24 | 193 | (home-page "https://www.gnupg.org") |
35b9e423 | 194 | (synopsis "CMS and X.509 access library") |
8d1939e4 LC |
195 | (description |
196 | "KSBA (pronounced Kasbah) is a library to make X.509 certificates | |
197 | as well as the CMS easily accessible by other applications. Both | |
198 | specifications are building blocks of S/MIME and TLS.") | |
63e8bb12 LC |
199 | (license license:gpl3+) |
200 | (properties '((ftp-server . "ftp.gnupg.org") | |
201 | (ftp-directory . "/gcrypt/libksba"))))) | |
8d1939e4 | 202 | |
c18ea90f AE |
203 | (define-public npth |
204 | (package | |
205 | (name "npth") | |
f48a9d4a | 206 | (version "1.5") |
c18ea90f AE |
207 | (source |
208 | (origin | |
209 | (method url-fetch) | |
89c83e8c | 210 | (uri (string-append "mirror://gnupg/npth/npth-" version ".tar.bz2")) |
c18ea90f AE |
211 | (sha256 |
212 | (base32 | |
f48a9d4a | 213 | "1hmkkp6vzyrh8v01c2ynzf9vwikyagp7p1lxhbnr4ysk3w66jji9")))) |
c18ea90f | 214 | (build-system gnu-build-system) |
72fb1b24 | 215 | (home-page "https://www.gnupg.org") |
c18ea90f AE |
216 | (synopsis "Non-preemptive thread library") |
217 | (description | |
218 | "Npth is a library to provide the GNU Pth API and thus a non-preemptive | |
219 | threads implementation. | |
220 | ||
221 | In contrast to GNU Pth is is based on the system's standard threads | |
222 | implementation. This allows the use of libraries which are not | |
223 | compatible to GNU Pth.") | |
07157e8a | 224 | (license (list license:lgpl3+ license:gpl2+)))) ; dual license |
c18ea90f | 225 | |
8d1939e4 LC |
226 | (define-public gnupg |
227 | (package | |
228 | (name "gnupg") | |
a28835a0 | 229 | (version "2.2.3") |
58970d6a LC |
230 | (source (origin |
231 | (method url-fetch) | |
232 | (uri (string-append "mirror://gnupg/gnupg/gnupg-" version | |
233 | ".tar.bz2")) | |
234 | (sha256 | |
235 | (base32 | |
a28835a0 | 236 | "1d4482c4pbi0p1k8cc0f9c4q51k56v8navrbz5samxrrs42p3lyb")))) |
8d1939e4 | 237 | (build-system gnu-build-system) |
08fa45b1 MW |
238 | (native-inputs |
239 | `(("pkg-config" ,pkg-config))) | |
8d1939e4 | 240 | (inputs |
e31d35de | 241 | `(("bzip2" ,bzip2) |
01e11826 | 242 | ("curl" ,curl) |
08fa45b1 | 243 | ("gnutls" ,gnutls) |
8d1939e4 LC |
244 | ("libassuan" ,libassuan) |
245 | ("libgcrypt" ,libgcrypt) | |
01e11826 | 246 | ("libgpg-error" ,libgpg-error) |
8d1939e4 | 247 | ("libksba" ,libksba) |
cd064df7 | 248 | ("npth" ,npth) |
01e11826 | 249 | ("openldap" ,openldap) |
cd9ed6c1 | 250 | ("pcsc-lite" ,pcsc-lite) |
2d12284d EF |
251 | ("readline" ,readline) |
252 | ("sqlite" ,sqlite) | |
253 | ("zlib" ,zlib))) | |
30e9cbb4 | 254 | (arguments |
10756b9e | 255 | `(#:configure-flags '(;; Otherwise, the test suite looks for the `gpg` |
f11275c9 LF |
256 | ;; executable in its installation directory in |
257 | ;; /gnu/store before it has been installed. | |
e184de57 EF |
258 | "--enable-gnupg-builddir-envvar" |
259 | "--enable-all-tests") | |
163708a6 | 260 | #:phases |
45477c6a | 261 | (modify-phases %standard-phases |
cd9ed6c1 MG |
262 | (add-before 'configure 'patch-paths |
263 | (lambda* (#:key inputs #:allow-other-keys) | |
cd9ed6c1 MG |
264 | (substitute* "scd/scdaemon.c" |
265 | (("\"(libpcsclite\\.so[^\"]*)\"" _ name) | |
266 | (string-append "\"" (assoc-ref inputs "pcsc-lite") | |
267 | "/lib/" name "\""))) | |
7deb5ee8 LF |
268 | #t)) |
269 | (add-after 'build 'patch-scheme-tests | |
270 | (lambda _ | |
271 | (substitute* (find-files "tests" ".\\.scm$") | |
272 | (("/usr/bin/env gpgscm") | |
764c5662 LF |
273 | (string-append (getcwd) "/tests/gpgscm/gpgscm"))) |
274 | #t)) | |
f11275c9 | 275 | (add-before 'build 'patch-test-paths |
92cc6a58 EF |
276 | (lambda _ |
277 | (substitute* '("tests/inittests" | |
278 | "tests/pkits/inittests" | |
279 | "tests/Makefile" | |
280 | "tests/pkits/common.sh" | |
281 | "tests/pkits/Makefile") | |
282 | (("/bin/pwd") (which "pwd"))) | |
283 | (substitute* "common/t-exectool.c" | |
284 | (("/bin/cat") (which "cat")) | |
285 | (("/bin/true") (which "true")) | |
286 | (("/bin/false") (which "false"))) | |
287 | #t))))) | |
72fb1b24 | 288 | (home-page "https://gnupg.org/") |
f50d2669 | 289 | (synopsis "GNU Privacy Guard") |
8d1939e4 | 290 | (description |
a22dc0c4 LC |
291 | "The GNU Privacy Guard is a complete implementation of the OpenPGP |
292 | standard. It is used to encrypt and sign data and communication. It | |
293 | features powerful key management and the ability to access public key | |
79c311b8 | 294 | servers. It includes several libraries: libassuan (IPC between GnuPG |
58970d6a LC |
295 | components), libgpg-error (centralized GnuPG error values), and |
296 | libskba (working with X.509 certificates and CMS data).") | |
63e8bb12 LC |
297 | (license license:gpl3+) |
298 | (properties '((ftp-server . "ftp.gnupg.org") | |
299 | (ftp-directory . "/gcrypt/gnupg"))))) | |
ea4d96c6 | 300 | |
cd064df7 AE |
301 | (define-public gnupg-2.0 |
302 | (package (inherit gnupg) | |
b5afe6f0 | 303 | (version "2.0.30") |
cd064df7 AE |
304 | (source (origin |
305 | (method url-fetch) | |
306 | (uri (string-append "mirror://gnupg/gnupg/gnupg-" version | |
307 | ".tar.bz2")) | |
308 | (sha256 | |
309 | (base32 | |
b5afe6f0 | 310 | "0wax4cy14hh0h7kg9hj0hjn9424b71z8lrrc5kbsasrn9xd7hag3")))) |
08fa45b1 | 311 | (native-inputs '()) |
cd064df7 | 312 | (inputs |
7b40296f EF |
313 | `(("adns" ,adns) |
314 | ("bzip2" ,bzip2) | |
cd064df7 AE |
315 | ("curl" ,curl) |
316 | ("libassuan" ,libassuan) | |
317 | ("libgcrypt" ,libgcrypt) | |
318 | ("libgpg-error" ,libgpg-error) | |
319 | ("libksba" ,libksba) | |
320 | ("pth" ,pth) | |
321 | ("openldap" ,openldap) | |
07157e8a | 322 | ("zlib" ,zlib) |
cd064df7 AE |
323 | ("readline" ,readline))) |
324 | (arguments | |
325 | `(#:phases | |
80c47cf8 | 326 | (modify-phases %standard-phases |
6b547d22 LC |
327 | (add-before 'configure 'patch-config-files |
328 | (lambda _ | |
329 | (substitute* "tests/openpgp/Makefile.in" | |
3a534f42 | 330 | (("/bin/sh") (which "sh"))) |
bc85b127 LC |
331 | #t)) |
332 | (add-after 'install 'rename-v2-commands | |
333 | (lambda* (#:key outputs #:allow-other-keys) | |
334 | ;; Upstream suggests removing the trailing '2' from command names: | |
335 | ;; <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22883#58>. | |
336 | (let ((out (assoc-ref outputs "out"))) | |
337 | (with-directory-excursion (string-append out "/bin") | |
338 | (rename-file "gpgv2" "gpgv") | |
339 | (rename-file "gpg2" "gpg") | |
340 | ||
341 | ;; Keep the old name around to ease transition. | |
342 | (symlink "gpgv" "gpgv2") | |
343 | (symlink "gpg" "gpg2") | |
344 | #t))))))))) | |
cd064df7 | 345 | |
5249045c MW |
346 | (define-public gnupg-1 |
347 | (package (inherit gnupg) | |
81ca29a6 | 348 | (version "1.4.22") |
58970d6a LC |
349 | (source (origin |
350 | (method url-fetch) | |
351 | (uri (string-append "mirror://gnupg/gnupg/gnupg-" version | |
352 | ".tar.bz2")) | |
353 | (sha256 | |
354 | (base32 | |
81ca29a6 | 355 | "1d1hz4szh1kvwhsw7w2zxa6q5ndrk3qy6hj289l1b8k3xi5s554m")))) |
08fa45b1 | 356 | (native-inputs '()) |
5249045c | 357 | (inputs |
07157e8a LC |
358 | `(("zlib" ,zlib) |
359 | ("bzip2" ,bzip2) | |
5249045c MW |
360 | ("curl" ,curl) |
361 | ("readline" ,readline) | |
362 | ("libgpg-error" ,libgpg-error))) | |
363 | (arguments | |
29d90757 LF |
364 | `(#:phases |
365 | (modify-phases %standard-phases | |
366 | (add-after 'unpack 'patch-check-sh | |
367 | (lambda _ | |
368 | (substitute* "checks/Makefile.in" | |
2e4b67b9 | 369 | (("/bin/sh") (which "sh")))))))))) |
5249045c | 370 | |
09d5c166 AE |
371 | (define-public gpgme |
372 | (package | |
373 | (name "gpgme") | |
8439c9c0 | 374 | (version "1.9.0") |
09d5c166 AE |
375 | (source |
376 | (origin | |
377 | (method url-fetch) | |
378 | (uri (string-append "mirror://gnupg/gpgme/gpgme-" version | |
379 | ".tar.bz2")) | |
380 | (sha256 | |
381 | (base32 | |
8439c9c0 | 382 | "1ssc0gs02r4fasabk7c6v6r865k2j02mpb5g1vkpbmzsigdzwa8v")))) |
09d5c166 | 383 | (build-system gnu-build-system) |
68640c3c MW |
384 | (propagated-inputs |
385 | ;; Needs to be propagated because gpgme.h includes gpg-error.h. | |
386 | `(("libgpg-error" ,libgpg-error))) | |
09d5c166 | 387 | (inputs |
0e06bec2 | 388 | `(("gnupg" ,gnupg) |
68640c3c | 389 | ("libassuan" ,libassuan))) |
e10872cc | 390 | (arguments |
0e06bec2 LF |
391 | `(#:configure-flags |
392 | (list (string-append "--enable-fixed-path=" | |
393 | (assoc-ref %build-inputs "gnupg") | |
394 | "/bin")) | |
395 | #:phases | |
e10872cc TD |
396 | (modify-phases %standard-phases |
397 | (add-after 'configure 'patch-cmake-file | |
398 | (lambda _ | |
399 | ;; Work around <https://bugs.gnupg.org/gnupg/issue2877>. | |
400 | (substitute* "lang/cpp/src/GpgmeppConfig.cmake.in" | |
401 | (("@libsuffix@") ".so")) | |
402 | #t))))) | |
72fb1b24 | 403 | (home-page "https://www.gnupg.org/related_software/gpgme/") |
35b9e423 | 404 | (synopsis "Library providing simplified access to GnuPG functionality") |
09d5c166 AE |
405 | (description |
406 | "GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG | |
407 | easier for applications. It provides a High-Level Crypto API for encryption, | |
408 | decryption, signing, signature verification and key management. Currently | |
409 | it uses GnuPG as its backend but the API isn't restricted to this engine. | |
410 | ||
411 | Because the direct use of GnuPG from an application can be a complicated | |
412 | programming task, it is suggested that all software should try to use GPGME | |
413 | instead. This way bug fixes or improvements can be done at a central place | |
414 | and every application benefits from this.") | |
07157e8a | 415 | (license license:lgpl2.1+))) |
09d5c166 | 416 | |
6b982a78 HG |
417 | (define-public qgpgme |
418 | (package | |
419 | (inherit gpgme) | |
420 | (name "qgpgme") | |
421 | (arguments | |
422 | `(#:phases | |
423 | (modify-phases %standard-phases | |
424 | (add-before 'build 'chdir-and-symlink | |
425 | (lambda* (#:key inputs #:allow-other-keys) | |
426 | (let ((gpgme (assoc-ref inputs "gpgme"))) | |
427 | (symlink (string-append gpgme "/lib/libgpgmepp.la") | |
428 | "lang/cpp/src/libgpgmepp.la") | |
429 | (symlink (string-append gpgme "/lib/libgpgme.la") | |
430 | "src/libgpgme.la")) | |
431 | (chdir "lang/qt") | |
432 | #t))))) | |
433 | (native-inputs | |
434 | `(("pkg-config" ,pkg-config))) | |
435 | (inputs | |
436 | `(("gpgme" ,gpgme) | |
437 | ("qtbase" ,qtbase) | |
438 | ,@(package-inputs gpgme))) | |
439 | (synopsis "Qt API bindings for gpgme") | |
440 | (description "QGpgme provides a very high level Qt API around GpgMEpp. | |
441 | ||
442 | QGpgME was originally developed as part of libkleo and incorporated into | |
443 | gpgpme starting with version 1.7.") | |
444 | (license license:gpl2+))) ;; Note: this differs from gpgme | |
445 | ||
e3dd1f0c LF |
446 | (define-public python-gpg |
447 | (package | |
448 | (name "python-gpg") | |
99c63f3f | 449 | (version "1.8.0") |
e3dd1f0c LF |
450 | (source (origin |
451 | (method url-fetch) | |
452 | (uri (pypi-uri "gpg" version)) | |
453 | (sha256 | |
454 | (base32 | |
455 | "1x74i6q713c0bckls7rdm8kgsmllf9qvy9x62jghszlhgjkyh9nd")))) | |
456 | (build-system python-build-system) | |
457 | (arguments | |
458 | '(#:tests? #f)) ; No test suite. | |
459 | (inputs | |
460 | `(("gpgme" ,gpgme))) | |
461 | (native-inputs | |
462 | `(("swig" ,swig))) | |
463 | (home-page (package-home-page gpgme)) | |
464 | (synopsis "Python bindings for GPGME GnuPG cryptography library") | |
465 | (description "This package provides Python bindings to the GPGME GnuPG | |
466 | cryptographic library. It is developed in the GPGME source code, and then | |
467 | distributed separately.") | |
468 | (license license:lgpl2.1+))) | |
469 | ||
470 | (define-public python2-gpg | |
471 | (package-with-python2 python-gpg)) | |
472 | ||
a05d1d82 CAW |
473 | (define-public python-pygpgme |
474 | (package | |
475 | (name "python-pygpgme") | |
476 | (version "0.3") | |
477 | (source | |
478 | (origin | |
479 | (method url-fetch) | |
480 | (uri (pypi-uri "pygpgme" version)) | |
481 | (sha256 | |
482 | (base32 | |
483 | "1q82p3gs6lwq8j8dxk4pvrwk3jpww1zqcjrzznl9clh10z28gn2z")) | |
484 | ;; Unfortunately, we have to disable some tests due to some gpg-agent | |
485 | ;; goofiness... see: | |
486 | ;; https://bugs.launchpad.net/pygpgme/+bug/999949 | |
1c9cea74 LF |
487 | (patches (search-patches "pygpgme-disable-problematic-tests.patch" |
488 | "python-pygpgme-fix-pinentry-tests.patch")))) | |
a05d1d82 CAW |
489 | (arguments |
490 | `(#:phases | |
491 | (modify-phases %standard-phases | |
492 | (add-before 'build 'make-build | |
493 | (lambda _ | |
494 | (zero? (system* "make" "build")))) | |
495 | (replace 'check | |
496 | (lambda _ | |
497 | (zero? (system* "make" "check"))))))) | |
498 | (build-system python-build-system) | |
e6f63412 LF |
499 | (native-inputs |
500 | `(("gnupg" ,gnupg-1))) | |
a05d1d82 | 501 | (inputs |
e6f63412 | 502 | `(("gpgme" ,gpgme))) |
a05d1d82 CAW |
503 | (home-page "https://launchpad.net/pygpgme") |
504 | (synopsis "Python module for working with OpenPGP messages") | |
505 | (description | |
506 | "PyGPGME is a Python module that lets you sign, verify, encrypt and | |
507 | decrypt messages using the OpenPGP format by making use of GPGME.") | |
508 | (license license:lgpl2.1+))) | |
509 | ||
510 | (define-public python2-pygpgme | |
5c31f4aa | 511 | (package-with-python2 python-pygpgme)) |
a05d1d82 | 512 | |
22af9029 RW |
513 | (define-public python-gnupg |
514 | (package | |
515 | (name "python-gnupg") | |
5b669ba1 | 516 | (version "0.3.8") |
22af9029 RW |
517 | (source |
518 | (origin | |
519 | (method url-fetch) | |
5b669ba1 | 520 | (uri (pypi-uri "python-gnupg" version)) |
22af9029 RW |
521 | (sha256 |
522 | (base32 | |
5b669ba1 | 523 | "0nkbs9c8f30lra7ca39kg91x8cyxn0jb61vih4qky839gpbwwwiq")))) |
22af9029 RW |
524 | (build-system python-build-system) |
525 | (arguments | |
526 | `(#:phases | |
527 | (modify-phases %standard-phases | |
528 | (replace 'check | |
ec089763 RW |
529 | (lambda _ |
530 | (substitute* "test_gnupg.py" | |
531 | ;; Exported keys don't have a version line! | |
532 | (("del k1\\[1\\]") "#") | |
533 | ;; Unsure why this test fails. | |
534 | (("'test_search_keys'") "True") | |
535 | (("def test_search_keys") "def disabled__search_keys")) | |
536 | (setenv "USERNAME" "guixbuilder") | |
537 | ;; The doctests are extremely slow and sometimes time out, | |
538 | ;; so we disable them. | |
539 | (zero? (system* "python" | |
540 | "test_gnupg.py" "--no-doctests"))))))) | |
22af9029 RW |
541 | (native-inputs |
542 | `(("gnupg" ,gnupg-1))) | |
72fb1b24 | 543 | (home-page "https://packages.python.org/python-gnupg/index.html") |
22af9029 RW |
544 | (synopsis "Wrapper for the GNU Privacy Guard") |
545 | (description | |
546 | "This module allows easy access to GnuPG’s key management, encryption | |
547 | and signature functionality from Python programs.") | |
548 | (license license:bsd-3))) | |
549 | ||
550 | (define-public python2-gnupg | |
551 | (package-with-python2 python-gnupg)) | |
552 | ||
34ef5755 CB |
553 | (define-public perl-gnupg-interface |
554 | (package | |
555 | (name "perl-gnupg-interface") | |
556 | (version "0.52") | |
9c2d0a03 RW |
557 | (source (origin |
558 | (method url-fetch) | |
559 | (uri (string-append "mirror://cpan/authors/id/A/AL/ALEXMV/" | |
560 | "GnuPG-Interface-" version ".tar.gz")) | |
561 | (sha256 | |
562 | (base32 | |
563 | "0dgx8yhdsmhkazcrz14n4flrk1afv7azgl003hl4arxvi1d9yyi4")))) | |
34ef5755 CB |
564 | (build-system perl-build-system) |
565 | (arguments | |
9c2d0a03 RW |
566 | `(#:phases |
567 | (modify-phases %standard-phases | |
568 | ;; FIXME: This test fails for unknown reasons | |
569 | (add-after 'unpack 'delete-broken-test | |
570 | (lambda _ | |
571 | (delete-file "t/encrypt_symmetrically.t") | |
572 | #t))))) | |
34ef5755 | 573 | (inputs |
9c2d0a03 | 574 | `(("gnupg" ,gnupg-1))) |
34ef5755 CB |
575 | (propagated-inputs |
576 | `(("perl-moo" ,perl-moo) | |
9c2d0a03 RW |
577 | ("perl-moox-handlesvia" ,perl-moox-handlesvia) |
578 | ("perl-moox-late" ,perl-moox-late))) | |
579 | (native-inputs | |
580 | `(("which" ,which) | |
581 | ("perl-module-install" ,perl-module-install))) | |
582 | (home-page "http://search.cpan.org/dist/GnuPG-Interface/") | |
34ef5755 | 583 | (synopsis "Perl interface to GnuPG") |
9c2d0a03 RW |
584 | (description "@code{GnuPG::Interface} and its associated modules are |
585 | designed to provide an object-oriented method for interacting with GnuPG, | |
586 | being able to perform functions such as but not limited to encrypting, | |
587 | signing, decryption, verification, and key-listing parsing.") | |
34ef5755 CB |
588 | (license license:perl-license))) |
589 | ||
ea4d96c6 | 590 | (define-public pius |
cda0ef04 TS |
591 | (package |
592 | (name "pius") | |
1b34a47d | 593 | (version "2.2.4") |
cda0ef04 TS |
594 | (source (origin |
595 | (method url-fetch) | |
596 | (uri (string-append | |
597 | "https://github.com/jaymzh/pius/releases/download/v" | |
598 | version "/pius-" version ".tar.bz2")) | |
599 | (sha256 | |
600 | (base32 | |
1b34a47d | 601 | "0lgc0ipwdfqbq16zax8kn17wbv8xyw4ygc09fawl2yp459z0ql4n")))) |
cda0ef04 TS |
602 | (build-system python-build-system) |
603 | (inputs `(("perl" ,perl) ;for 'pius-party-worksheet' | |
604 | ("gpg" ,gnupg))) | |
605 | (arguments | |
606 | `(#:tests? #f | |
607 | #:python ,python-2 ;uses the Python 2 'print' syntax | |
608 | #:phases | |
609 | (modify-phases %standard-phases | |
610 | (add-before | |
611 | 'build 'set-gpg-file-name | |
612 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
613 | (let* ((gpg (string-append (assoc-ref inputs "gpg") | |
614 | "/bin/gpg"))) | |
615 | (substitute* "libpius/constants.py" | |
616 | (("/usr/bin/gpg2") gpg)) | |
617 | #t)))))) | |
618 | (synopsis "Programs to simplify GnuPG key signing") | |
619 | (description | |
620 | "Pius (PGP Individual UID Signer) helps attendees of PGP keysigning | |
35b9e423 EB |
621 | parties. It is the main utility and makes it possible to quickly and easily |
622 | sign each UID on a set of PGP keys. It is designed to take the pain out of | |
ea4d96c6 AE |
623 | the sign-all-the-keys part of PGP Keysigning Party while adding security |
624 | to the process. | |
625 | ||
626 | pius-keyring-mgr and pius-party-worksheet help organisers of | |
627 | PGP keysigning parties.") | |
cda0ef04 TS |
628 | (license license:gpl2) |
629 | (home-page "https://www.phildev.net/pius/index.shtml"))) | |
96be765c AE |
630 | |
631 | (define-public signing-party | |
632 | (package | |
633 | (name "signing-party") | |
c9ce8e17 | 634 | (version "2.6") |
96be765c AE |
635 | (source (origin |
636 | (method url-fetch) | |
807143b6 EF |
637 | (uri (string-append "mirror://debian/pool/main/s/signing-party/" |
638 | "signing-party_" version ".orig.tar.gz")) | |
96be765c | 639 | (sha256 (base32 |
c9ce8e17 | 640 | "1n5bpcfpl9vg1xp6r1jhbyahrgdyxp05b5pria1rh4m0qnv8sifr")))) |
96be765c | 641 | (build-system gnu-build-system) |
c9ce8e17 CB |
642 | (native-inputs |
643 | `(("autoconf" ,(autoconf-wrapper)) | |
644 | ("automake" ,automake))) | |
645 | (inputs `(("perl" ,perl) | |
646 | ("perl-text-template" ,perl-text-template) | |
647 | ("perl-mime-tools" ,perl-mime-tools) | |
648 | ("perl-gnupg-interface" ,perl-gnupg-interface) | |
649 | ("perl-net-idn-encode" ,perl-net-idn-encode) | |
650 | ("libmd" ,libmd))) | |
96be765c AE |
651 | (arguments |
652 | `(#:tests? #f | |
653 | #:phases | |
6a90a614 | 654 | (modify-phases %standard-phases |
c9ce8e17 CB |
655 | (add-before 'configure 'change-directory |
656 | (lambda _ | |
657 | ;; The build system in the unpack phase changes to a less useful | |
658 | ;; subdirectory, so move up one level | |
659 | (chdir (dirname (getcwd))))) | |
6a90a614 EF |
660 | (replace 'configure |
661 | (lambda* (#:key outputs #:allow-other-keys) | |
662 | (let ((out (assoc-ref outputs "out"))) | |
663 | (substitute* "keyanalyze/Makefile" | |
664 | (("LDLIBS") (string-append "CC=" (which "gcc") "\nLDLIBS"))) | |
665 | (substitute* "keyanalyze/Makefile" | |
c9ce8e17 CB |
666 | (("\\./configure") (string-append "./configure --prefix=" out))) |
667 | (substitute* "gpgwrap/src/Makefile" | |
6a90a614 EF |
668 | (("\\} clean") |
669 | (string-append "} clean\ninstall:\n\tinstall -D bin/gpgwrap " | |
670 | out "/bin/gpgwrap\n"))) | |
671 | (substitute* '("gpgsigs/Makefile" "keyanalyze/Makefile" | |
672 | "keylookup/Makefile" "sig2dot/Makefile" | |
673 | "springgraph/Makefile") | |
c9ce8e17 CB |
674 | (("/usr") out)) |
675 | (setenv "CONFIG_SHELL" (which "sh"))))) | |
6a90a614 EF |
676 | (replace 'install |
677 | (lambda* (#:key outputs #:allow-other-keys #:rest args) | |
678 | (let ((out (assoc-ref outputs "out")) | |
679 | (install (assoc-ref %standard-phases 'install))) | |
680 | (apply install args) | |
681 | (for-each | |
682 | (lambda (dir file) | |
683 | (copy-file (string-append dir "/" file) | |
684 | (string-append out "/bin/" file))) | |
685 | '("caff" "caff" "caff" "gpgdir" "gpg-key2ps" | |
686 | "gpglist" "gpg-mailkeys" "gpgparticipants") | |
687 | '("caff" "pgp-clean" "pgp-fixkey" "gpgdir" "gpg-key2ps" | |
688 | "gpglist" "gpg-mailkeys" "gpgparticipants")) | |
689 | (for-each | |
690 | (lambda (dir file) | |
691 | (copy-file (string-append dir "/" file) | |
692 | (string-append out "/share/man/man1/" file))) | |
693 | '("caff" "caff" "caff" "gpgdir" | |
694 | "gpg-key2ps" "gpglist" "gpg-mailkeys" | |
695 | "gpgparticipants" "gpgsigs" "gpgwrap/doc" | |
696 | "keyanalyze" "keyanalyze/pgpring" "keyanalyze") | |
697 | '("caff.1" "pgp-clean.1" "pgp-fixkey.1" "gpgdir.1" | |
698 | "gpg-key2ps.1" "gpglist.1" "gpg-mailkeys.1" | |
699 | "gpgparticipants.1" "gpgsigs.1" "gpgwrap.1" | |
c9ce8e17 CB |
700 | "process_keys.1" "pgpring.1" "keyanalyze.1"))))) |
701 | (add-after 'install 'wrap-programs | |
702 | (lambda* (#:key outputs #:allow-other-keys) | |
703 | (let* ((out (assoc-ref outputs "out"))) | |
704 | (wrap-program | |
705 | (string-append out "/bin/caff") | |
706 | `("PERL5LIB" ":" prefix (,(getenv "PERL5LIB")))))))))) | |
35b9e423 | 707 | (synopsis "Collection of scripts for simplifying gnupg key signing") |
96be765c | 708 | (description |
35b9e423 | 709 | "Signing-party is a collection for all kinds of PGP/GnuPG related things, |
96be765c | 710 | including tools for signing keys, keyring analysis, and party preparation. |
7ac53403 EF |
711 | @enumerate |
712 | @item caff: CA - Fire and Forget signs and mails a key | |
713 | @item pgp-clean: removes all non-self signatures from key | |
714 | @item pgp-fixkey: removes broken packets from keys | |
715 | @item gpg-mailkeys: simply mail out a signed key to its owner | |
716 | @item gpg-key2ps: generate PostScript file with fingerprint paper strips | |
717 | @item gpgdir: recursive directory encryption tool | |
718 | @item gpglist: show who signed which of your UIDs | |
719 | @item gpgsigs: annotates list of GnuPG keys with already done signatures | |
720 | @item gpgparticipants: create list of party participants for the organiser | |
721 | @item gpgwrap: a passphrase wrapper | |
722 | @item keyanalyze: minimum signing distance (MSD) analysis on keyrings | |
723 | @item keylookup: ncurses wrapper around gpg --search | |
724 | @item sig2dot: converts a list of GnuPG signatures to a .dot file | |
725 | @item springgraph: creates a graph from a .dot file | |
726 | @end enumerate") | |
96be765c AE |
727 | ;; gpl2+ for almost all programs, except for keyanalyze: gpl2 |
728 | ;; and caff and gpgsigs: bsd-3, see | |
729 | ;; http://packages.debian.org/changelogs/pool/main/s/signing-party/current/copyright | |
07157e8a | 730 | (license license:gpl2) |
72fb1b24 | 731 | (home-page "https://pgp-tools.alioth.debian.org/"))) |
40d806af | 732 | |
c607b701 | 733 | (define-public pinentry-tty |
40d806af | 734 | (package |
c607b701 | 735 | (name "pinentry-tty") |
4498cbd7 | 736 | (version "1.1.0") |
40d806af LC |
737 | (source (origin |
738 | (method url-fetch) | |
739 | (uri (string-append "mirror://gnupg/pinentry/pinentry-" | |
740 | version ".tar.bz2")) | |
741 | (sha256 | |
742 | (base32 | |
4498cbd7 | 743 | "0w35ypl960pczg5kp6km3dyr000m1hf0vpwwlh72jjkjza36c1v8")))) |
40d806af | 744 | (build-system gnu-build-system) |
c607b701 EF |
745 | (arguments |
746 | `(#:configure-flags '("--enable-pinentry-tty"))) | |
40d806af LC |
747 | (inputs |
748 | `(("ncurses" ,ncurses) | |
18ed97d6 | 749 | ("libassuan" ,libassuan) |
c607b701 | 750 | ("libsecret" ,libsecret "out"))) |
40d806af LC |
751 | (native-inputs |
752 | `(("pkg-config" ,pkg-config))) | |
547cb17d | 753 | (home-page "https://gnupg.org/aegypten2/") |
40d806af LC |
754 | (synopsis "GnuPG's interface to passphrase input") |
755 | (description | |
c607b701 | 756 | "Pinentry provides a console that allows users to enter a passphrase when |
9614897b | 757 | @code{gpg} is run and needs it.") |
f8457932 LC |
758 | (license license:gpl2+) |
759 | (properties '((ftp-server . "ftp.gnupg.org") | |
760 | (ftp-directory . "/gcrypt/pinentry") | |
761 | (upstream-name . "pinentry"))))) | |
4380a7b4 | 762 | |
c607b701 EF |
763 | (define-public pinentry-gtk2 |
764 | (package | |
765 | (inherit pinentry-tty) | |
766 | (name "pinentry-gtk2") | |
767 | (inputs | |
768 | `(("gtk+" ,gtk+-2) | |
769 | ("glib" ,glib) | |
770 | ,@(package-inputs pinentry-tty))) | |
771 | (description | |
772 | "Pinentry provides a console and a GTK+ GUI that allows users to enter a | |
9614897b | 773 | passphrase when @code{gpg} is run and needs it."))) |
c607b701 | 774 | |
41edb23f CB |
775 | (define-public pinentry-gnome3 |
776 | (package | |
777 | (inherit pinentry-tty) | |
778 | (name "pinentry-gnome3") | |
779 | (inputs | |
780 | `(("gtk+" ,gtk+-2) | |
781 | ("gcr" ,gcr) | |
782 | ("glib" ,glib) | |
783 | ,@(package-inputs pinentry-tty))) | |
784 | (arguments | |
785 | `(#:configure-flags '("--enable-pinentry-gnome3"))) | |
786 | (description | |
787 | "Pinentry provides a console and a GUI designed for use with GNOME@tie{}3 | |
788 | that allows users to enter a passphrase when required by @code{gpg} or other | |
789 | software."))) | |
c607b701 | 790 | |
54df7558 EF |
791 | (define-public pinentry-qt |
792 | (package | |
793 | (inherit pinentry-tty) | |
794 | (name "pinentry-qt") | |
795 | (inputs | |
e2788cef | 796 | `(("qtbase" ,qtbase) |
54df7558 | 797 | ,@(package-inputs pinentry-tty))) |
984ad832 DC |
798 | (arguments |
799 | `(#:configure-flags '("CXXFLAGS=-std=gnu++11"))) | |
54df7558 EF |
800 | (description |
801 | "Pinentry provides a console and a Qt GUI that allows users to enter a | |
9614897b | 802 | passphrase when @code{gpg} is run and needs it."))) |
54df7558 | 803 | |
940f8d39 EF |
804 | (define-public pinentry |
805 | (package (inherit pinentry-gtk2) | |
806 | (name "pinentry"))) | |
807 | ||
4380a7b4 EB |
808 | (define-public paperkey |
809 | (package | |
810 | (name "paperkey") | |
811 | (version "1.3") | |
812 | (source (origin | |
813 | (method url-fetch) | |
814 | (uri (string-append "http://www.jabberwocky.com/" | |
815 | "software/paperkey/paperkey-" | |
816 | version ".tar.gz")) | |
817 | (sha256 | |
818 | (base32 | |
819 | "1yybj8bj68v4lxwpn596b6ismh2fyixw5vlqqg26byrn4d9dfmsv")))) | |
820 | (build-system gnu-build-system) | |
821 | (arguments | |
822 | `(#:phases | |
e379d85c EF |
823 | (modify-phases %standard-phases |
824 | (add-before 'check 'patch-check-scripts | |
825 | (lambda _ | |
826 | (substitute* '("checks/roundtrip.sh" | |
827 | "checks/roundtrip-raw.sh") | |
828 | (("/bin/echo") "echo")) | |
829 | #t))))) | |
4380a7b4 EB |
830 | (home-page "http://www.jabberwocky.com/software/paperkey/") |
831 | (synopsis "Backup OpenPGP keys to paper") | |
832 | (description | |
833 | "Paperkey extracts the secret bytes from an OpenPGP (GnuPG, PGP, etc) key | |
834 | for printing with paper and ink, which have amazingly long retention | |
835 | qualities. To reconstruct a secret key, you re-enter those | |
836 | bytes (whether by hand, OCR, QR code, or the like) and paperkey can use | |
837 | them to transform your existing public key into a secret key.") | |
07157e8a | 838 | (license license:gpl2+))) |
8384499c | 839 | |
840 | (define-public gpa | |
841 | (package | |
842 | (name "gpa") | |
843 | (version "0.9.10") | |
844 | (source (origin | |
845 | (method url-fetch) | |
846 | (uri (string-append "mirror://gnupg/gpa/" | |
847 | name "-" version ".tar.bz2")) | |
848 | (sha256 | |
849 | (base32 | |
850 | "09xphbi2456qynwqq5n0yh0zdmdi2ggrj3wk4hsyh5lrzlvcrff3")))) | |
851 | (build-system gnu-build-system) | |
852 | (native-inputs | |
853 | `(("pkg-config" ,pkg-config))) | |
854 | (inputs | |
855 | `(("gnupg" ,gnupg) | |
856 | ("gpgme" ,gpgme) | |
857 | ("libassuan" ,libassuan) | |
858 | ("libgpg-error" ,libgpg-error) | |
859 | ("gtk+-2" ,gtk+-2))) | |
860 | (home-page "https://gnupg.org/software/gpa/") | |
861 | (synopsis "Graphical user interface for GnuPG") | |
862 | (description | |
863 | "GPA, the GNU Privacy Assistant, is a graphical user interface for | |
864 | @uref{https://gnupg.org, GnuPG}. It can be used to encrypt, decrypt, and sign | |
865 | files, to verify signatures, and to manage the private and public keys.") | |
866 | (license license:gpl3+))) | |
5aeb6611 | 867 | |
15b08442 P |
868 | (define-public parcimonie |
869 | (package | |
870 | (name "parcimonie") | |
871 | (version "0.10.3") | |
872 | (source (origin | |
873 | (method url-fetch) | |
874 | (uri (string-append "https://gaffer.ptitcanardnoir.org/" | |
875 | "intrigeri/files/parcimonie/App-Parcimonie-" | |
876 | version ".tar.gz")) | |
877 | (sha256 | |
878 | (base32 | |
879 | "1kf891117s1f3k6lxvbjdb21va9gxh29vlp9bd664ssgw266rcyb")))) | |
880 | (build-system perl-build-system) | |
881 | (inputs | |
882 | `(("gnupg" ,gnupg-1) ; This is the version used by perl-gnupg-interface | |
883 | ("perl-config-general" ,perl-config-general) | |
884 | ("perl-clone" ,perl-clone) | |
885 | ("perl-data" ,perl-data) | |
886 | ("perl-exporter-tiny" ,perl-exporter-tiny) | |
887 | ("perl-file-homedir" ,perl-file-homedir) | |
888 | ("perl-file-sharedir" ,perl-file-sharedir) | |
889 | ("perl-file-which" ,perl-file-which) | |
890 | ("perl-getopt-long-descriptive" ,perl-getopt-long-descriptive) | |
891 | ("perl-gnupg-interface" ,perl-gnupg-interface) | |
892 | ("perl-ipc-system-simple" ,perl-ipc-system-simple) | |
893 | ("perl-list-moreutils" ,perl-list-moreutils) | |
894 | ("perl-libintl-perl" ,perl-libintl-perl) ; Locale::TextDomain | |
895 | ("perl-lwp-online" ,perl-lwp-online) | |
896 | ("perl-module-build" ,perl-module-build) | |
897 | ("perl-module-pluggable-object" ,perl-module-pluggable) | |
898 | ("perl-moo" ,perl-moo) | |
899 | ("perl-moox-handlesvia" ,perl-moox-handlesvia) | |
900 | ("perl-moox-late" ,perl-moox-late) | |
901 | ("perl-moox-options" ,perl-moox-options) | |
902 | ("perl-namespace-clean" ,perl-namespace-clean) | |
903 | ("perl-net-dbus" ,perl-net-dbus) | |
904 | ("perl-net-dbus-glib" ,perl-net-dbus-glib) | |
905 | ("perl-path-tiny" ,perl-path-tiny) | |
906 | ("perl-test-most" ,perl-test-most) | |
907 | ("perl-test-trap" ,perl-test-trap) | |
908 | ("perl-time-duration" ,perl-time-duration) | |
909 | ("perl-time-duration-parse" ,perl-time-duration-parse) | |
910 | ("perl-try-tiny" ,perl-try-tiny) | |
911 | ("perl-type-tiny" ,perl-type-tiny) | |
912 | ("perl-types-path-tiny" ,perl-types-path-tiny) | |
913 | ("perl-unicode-linebreak" ,perl-unicode-linebreak) | |
914 | ("perl-xml-parser" ,perl-xml-parser) | |
915 | ("perl-xml-twig" ,perl-xml-twig) | |
916 | ("torsocks" ,torsocks))) | |
917 | (arguments | |
918 | `(#:phases | |
919 | (modify-phases %standard-phases | |
920 | ;; Needed for using gpg-connect-agent during tests. | |
921 | (add-before 'check 'set-HOME | |
922 | (lambda _ (setenv "HOME" "/tmp") #t)) | |
923 | (add-before 'install 'fix-references | |
924 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
925 | (substitute* "lib/App/Parcimonie/GnuPG/Interface.pm" | |
926 | (("gpg2") "gpg") | |
927 | ;; Skip check whether dependencies are in the PATH | |
928 | (("defined which.*") "") | |
929 | (("call\\('parcimonie-torified-gpg'\\)") | |
930 | (string-append "call('" (assoc-ref outputs "out") | |
931 | "/bin/parcimonie-torified-gpg')"))) | |
932 | (substitute* "bin/parcimonie-torified-gpg" | |
933 | (("torsocks") (string-append (assoc-ref inputs "torsocks") | |
934 | "/bin/torsocks"))) | |
935 | #t)) | |
936 | (add-after 'install 'wrap-program | |
937 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
938 | (let* ((out (assoc-ref outputs "out")) | |
939 | (perllib (string-append out "/lib/perl5/site_perl/" | |
940 | ,(package-version perl)))) | |
941 | (wrap-program (string-append out "/bin/parcimonie") | |
942 | `("PERL5LIB" ":" | |
943 | prefix (,(string-append perllib ":" (getenv "PERL5LIB"))))) | |
944 | #t)))))) | |
945 | (home-page "https://gaffer.ptitcanardnoir.org/intrigeri/code/parcimonie/") | |
946 | (synopsis "Incrementally refreshes a GnuPG keyring") | |
947 | (description "Parcimonie incrementaly refreshes a GnuPG keyring in a way | |
948 | that makes it hard to correlate the keyring content to an individual, and | |
949 | makes it hard to locate an individual based on an identifying subset of her | |
950 | keyring content. Parcimonie is a daemon that fetches one key at a time using | |
951 | the Tor network, waits a bit, changes the Tor circuit being used, and starts | |
952 | over.") | |
953 | (license license:gpl1+))) |