Commit | Line | Data |
---|---|---|
de63b20e SS |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2015 Steve Sprang <scs@stevesprang.com> | |
562c3a4e | 3 | ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021 Efraim Flashner <efraim@flashner.co.il> |
7e9b07bd | 4 | ;;; Copyright © 2015 Aljosha Papsch <misc@rpapsch.de> |
3d4f9d5c | 5 | ;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org> |
c285a400 JT |
6 | ;;; Copyright © 2016 Jessica Tallon <tsyesika@tsyesika.se> |
7 | ;;; Copyright © 2016 Andreas Enge <andreas@enge.fr> | |
6d32dd8c | 8 | ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org> |
63299f28 | 9 | ;;; Copyright © 2016, 2019, 2020 Alex Griffin <a@ajgrf.com> |
f339f277 | 10 | ;;; Copyright © 2017 Leo Famulari <leo@famulari.name> |
60628f54 | 11 | ;;; Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org> |
e48cdbb9 | 12 | ;;; Copyright © 2017–2021 Tobias Geerinckx-Rice <me@tobias.gr> |
a1714ff5 | 13 | ;;; Copyright © 2017 Jelle Licht <jlicht@fsfe.org> |
e57c7dd7 | 14 | ;;; Copyright © 2017, 2019 Eric Bavier <bavier@member.fsf.org> |
aae32847 | 15 | ;;; Copyright © 2017, 2020, 2021 Nicolas Goaziou <mail@nicolasgoaziou.fr> |
763269f9 | 16 | ;;; Copyright © 2017 Manolis Fragkiskos Ragkousis <manolis837@gmail.com> |
dcf12172 | 17 | ;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com> |
c06bf6a3 | 18 | ;;; Copyright © 2018 Marius Bakke <mbakke@fastmail.com> |
649eb8b5 | 19 | ;;; Copyright © 2018 Konrad Hinsen <konrad.hinsen@fastmail.net> |
d4e0ebd0 | 20 | ;;; Copyright © 2018 Thomas Sigurdsen <tonton@riseup.net> |
20b51b17 | 21 | ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net> |
4715f92e | 22 | ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz> |
037d1851 | 23 | ;;; Copyright © 2018 Amirouche Boubekki <amirouche@hypermove.net> |
9b572aba | 24 | ;;; Copyright © 2018, 2019, 2020 Tim Gesthuizen <tim.gesthuizen@yahoo.de> |
872da48e | 25 | ;;; Copyright © 2019 Jens Mølgaard <jens@zete.tk> |
f59ea3a7 | 26 | ;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org> |
d823fd96 | 27 | ;;; Copyright © 2020 Guillaume Le Vaillant <glv@posteo.net> |
df931ac3 | 28 | ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re> |
b2b9b227 | 29 | ;;; Copyright © 2020 Jean-Baptiste Note <jean-baptiste.note@m4x.org> |
4af67aa2 | 30 | ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de> |
9cd61289 | 31 | ;;; Copyright © 2020 Vinicius Monego <monego@posteo.net> |
33a212bf | 32 | ;;; Copyright © 2021 Stefan Reichör <stefan@xsteve.at> |
599c4ed0 | 33 | ;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz> |
7e24e1e5 | 34 | ;;; Copyright © 2020 Hartmut Goebel <h.goebel@crazy-compilers.com> |
de63b20e SS |
35 | ;;; |
36 | ;;; This file is part of GNU Guix. | |
37 | ;;; | |
38 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
39 | ;;; under the terms of the GNU General Public License as published by | |
40 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
41 | ;;; your option) any later version. | |
42 | ;;; | |
43 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
44 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
45 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
46 | ;;; GNU General Public License for more details. | |
47 | ;;; | |
48 | ;;; You should have received a copy of the GNU General Public License | |
49 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
50 | ||
51 | (define-module (gnu packages password-utils) | |
52 | #:use-module ((guix licenses) #:prefix license:) | |
e8647227 | 53 | #:use-module (guix build-system cmake) |
de63b20e | 54 | #:use-module (guix build-system gnu) |
63299f28 | 55 | #:use-module (guix build-system go) |
f59ea3a7 | 56 | #:use-module (guix build-system trivial) |
de63b20e | 57 | #:use-module (guix download) |
7d4b3e1e | 58 | #:use-module (guix git-download) |
e8647227 | 59 | #:use-module (guix packages) |
53dcbbec | 60 | #:use-module (gnu packages) |
c285a400 | 61 | #:use-module (gnu packages admin) |
81635fb6 | 62 | #:use-module (gnu packages aidc) |
54b41d2d | 63 | #:use-module (gnu packages authentication) |
33a212bf | 64 | #:use-module (gnu packages autotools) |
c285a400 | 65 | #:use-module (gnu packages base) |
ac257f12 | 66 | #:use-module (gnu packages check) |
e8647227 | 67 | #:use-module (gnu packages compression) |
da1b30bd | 68 | #:use-module (gnu packages crypto) |
d823fd96 | 69 | #:use-module (gnu packages cryptsetup) |
da1b30bd | 70 | #:use-module (gnu packages curl) |
b2b9b227 | 71 | #:use-module (gnu packages docbook) |
7d4b3e1e | 72 | #:use-module (gnu packages file) |
a1714ff5 | 73 | #:use-module (gnu packages freedesktop) |
7d4b3e1e | 74 | #:use-module (gnu packages gettext) |
f339f277 | 75 | #:use-module (gnu packages glib) |
e8647227 | 76 | #:use-module (gnu packages gnupg) |
63299f28 | 77 | #:use-module (gnu packages golang) |
0050876b | 78 | #:use-module (gnu packages gtk) |
dd24e906 | 79 | #:use-module (gnu packages guile) |
eb28a777 | 80 | #:use-module (gnu packages kerberos) |
0751fddd | 81 | #:use-module (gnu packages libffi) |
c285a400 | 82 | #:use-module (gnu packages linux) |
3d4f9d5c | 83 | #:use-module (gnu packages man) |
eb28a777 | 84 | #:use-module (gnu packages multiprecision) |
7e9b07bd | 85 | #:use-module (gnu packages ncurses) |
aff0cce9 | 86 | #:use-module (gnu packages nss) |
c10aa278 | 87 | #:use-module (gnu packages opencl) |
eb4ffe9b | 88 | #:use-module (gnu packages perl) |
7e9b07bd | 89 | #:use-module (gnu packages pkg-config) |
3d4f9d5c | 90 | #:use-module (gnu packages python) |
20b51b17 | 91 | #:use-module (gnu packages python-web) |
44d10b1f | 92 | #:use-module (gnu packages python-xyz) |
24adcbab | 93 | #:use-module (gnu packages readline) |
e57c7dd7 | 94 | #:use-module (gnu packages ruby) |
24adcbab | 95 | #:use-module (gnu packages security-token) |
177475cf | 96 | #:use-module (gnu packages suckless) |
54b41d2d | 97 | #:use-module (gnu packages tcl) |
7e9b07bd | 98 | #:use-module (gnu packages tls) |
e8647227 | 99 | #:use-module (gnu packages qt) |
c285a400 | 100 | #:use-module (gnu packages version-control) |
7d4b3e1e | 101 | #:use-module (gnu packages wxwidgets) |
dd24e906 | 102 | #:use-module (gnu packages xdisorg) |
3d4f9d5c | 103 | #:use-module (gnu packages xorg) |
d4e0ebd0 | 104 | #:use-module (gnu packages xml) |
3d4f9d5c | 105 | #:use-module (guix build-system python)) |
de63b20e SS |
106 | |
107 | (define-public pwgen | |
108 | (package | |
109 | (name "pwgen") | |
5a2c4b3b | 110 | (version "2.08") |
de63b20e SS |
111 | (source |
112 | (origin | |
113 | (method url-fetch) | |
de67e922 LF |
114 | (uri (string-append "mirror://sourceforge/pwgen/pwgen/" version |
115 | "/pwgen-" version ".tar.gz")) | |
de63b20e | 116 | (sha256 |
5a2c4b3b | 117 | (base32 "0yy90pqrr2pszzhb5hxjishq9qc7dqd290amiibqx9fm1b9kvc6s")))) |
de63b20e SS |
118 | (build-system gnu-build-system) |
119 | (arguments | |
120 | `(#:tests? #f)) ; no test suite | |
121 | (home-page "http://pwgen.sourceforge.net/") | |
122 | (synopsis "Password generator") | |
123 | (description "Pwgen generates passwords which can be easily memorized by a | |
124 | human.") | |
125 | (license license:gpl2))) | |
e8647227 | 126 | |
99672f7b EF |
127 | (define-public keepassxc |
128 | (package | |
129 | (name "keepassxc") | |
30f0b6fa | 130 | (version "2.6.6") |
99672f7b EF |
131 | (source |
132 | (origin | |
133 | (method url-fetch) | |
e2d14ee9 | 134 | (uri (string-append "https://github.com/keepassxreboot/keepassxc" |
99672f7b EF |
135 | "/releases/download/" version "/keepassxc-" |
136 | version "-src.tar.xz")) | |
137 | (sha256 | |
30f0b6fa | 138 | (base32 "1qm4a1k11vy35mrzbzcc7lwlpmjzw18a2zy7z93rqa4vqcdb20rn")))) |
99672f7b | 139 | (build-system cmake-build-system) |
da1b30bd | 140 | (arguments |
562c3a4e EF |
141 | `(#:modules ((guix build cmake-build-system) |
142 | (guix build qt-utils) | |
143 | (guix build utils)) | |
144 | #:imported-modules (,@%cmake-build-system-modules | |
145 | (guix build qt-utils)) | |
146 | #:configure-flags '("-DWITH_XC_ALL=YES" | |
074814fe JL |
147 | "-DWITH_XC_UPDATECHECK=NO") |
148 | #:phases | |
149 | (modify-phases %standard-phases | |
562c3a4e EF |
150 | (add-after 'install 'wrap-qt |
151 | (lambda* (#:key outputs #:allow-other-keys) | |
152 | (wrap-qt-program (assoc-ref outputs "out") "keepassxc") | |
074814fe | 153 | #t))))) |
d1279853 NG |
154 | (native-inputs |
155 | `(("asciidoctor" ,ruby-asciidoctor) | |
156 | ("qttools" ,qttools))) | |
99672f7b | 157 | (inputs |
3374dcc7 EF |
158 | `(("argon2" ,argon2) |
159 | ("libgcrypt" ,libgcrypt) | |
0e5d66ab | 160 | ("libsodium" ,libsodium) ; XC_BROWSER |
24adcbab | 161 | ("libyubikey" ,libyubikey) ; XC_YUBIKEY |
99672f7b EF |
162 | ("libxi" ,libxi) |
163 | ("libxtst" ,libxtst) | |
0f3794fb | 164 | ("qrencode" ,qrencode) |
ea0a5107 | 165 | ("qtbase" ,qtbase-5) |
0f3794fb | 166 | ("qtsvg" ,qtsvg) |
99672f7b | 167 | ("qtx11extras" ,qtx11extras) |
24adcbab EF |
168 | ("quazip" ,quazip) ; XC_KEESHARE |
169 | ("readline" ,readline) | |
170 | ("yubikey-personalization" ,yubikey-personalization) ; XC_YUBIKEY | |
99672f7b | 171 | ("zlib" ,zlib))) |
99672f7b EF |
172 | (home-page "https://www.keepassxc.org") |
173 | (synopsis "Password manager") | |
174 | (description "KeePassXC is a password manager or safe which helps you to | |
175 | manage your passwords in a secure way. You can put all your passwords in one | |
176 | database, which is locked with one master key or a key-file which can be stored | |
177 | on an external storage device. The databases are encrypted using the | |
178 | algorithms AES or Twofish.") | |
24adcbab EF |
179 | ;; While various parts of the software are licensed under different licenses, |
180 | ;; the combined work falls under the GPLv3. | |
99672f7b EF |
181 | (license license:gpl3))) |
182 | ||
7d4b3e1e TG |
183 | (define-public pwsafe |
184 | (package | |
185 | (name "pwsafe") | |
2dfacc1d | 186 | (version "3.54.1") |
747aa6c4 | 187 | (home-page "https://www.pwsafe.org/") |
7d4b3e1e TG |
188 | (source |
189 | (origin | |
190 | (method git-fetch) | |
191 | (uri (git-reference | |
b0e7b699 | 192 | (url "https://github.com/pwsafe/pwsafe") |
7d4b3e1e | 193 | (commit version))) |
747aa6c4 | 194 | (sha256 |
2dfacc1d | 195 | (base32 "0d51dlw98mv23nwb0b5jyji8gnb9f5cnig6kivfljl97lmr6lhvf")) |
747aa6c4 | 196 | (file-name (git-file-name name version)))) |
7d4b3e1e | 197 | (build-system cmake-build-system) |
50bfb70b EF |
198 | (native-inputs |
199 | `(("gettext" ,gettext-minimal) | |
200 | ("gtest" ,googletest) | |
201 | ("perl" ,perl) | |
202 | ("zip" ,zip))) | |
7d4b3e1e TG |
203 | (inputs `(("curl" ,curl) |
204 | ("file" ,file) | |
bb93042c | 205 | ("libuuid" ,util-linux "lib") |
7d4b3e1e TG |
206 | ("libxt" ,libxt) |
207 | ("libxtst" ,libxtst) | |
208 | ("openssl" ,openssl) | |
209 | ("qrencode" ,qrencode) | |
210 | ("wxwidgets" ,wxwidgets) | |
211 | ("xerces-c" ,xerces-c))) | |
212 | (arguments '(#:configure-flags (list "-DNO_GTEST=YES") | |
213 | #:phases (modify-phases %standard-phases | |
214 | (add-after 'unpack 'add-gtest | |
215 | (lambda* (#:key inputs #:allow-other-keys) | |
216 | (chmod "CMakeLists.txt" #o644) | |
217 | (let ((cmake-port (open-file "CMakeLists.txt" | |
218 | "a"))) | |
219 | (display "find_package(GTest) | |
220 | add_subdirectory(src/test)\n" cmake-port) | |
221 | (close cmake-port) | |
9b572aba | 222 | #t)))))) |
7d4b3e1e TG |
223 | (synopsis "Password safe with automatic input and key generation") |
224 | (description "pwsafe is a password manager originally designed by Bruce | |
225 | Schneier. It offers a simple UI to manage passwords for different services. | |
226 | There are other programs that support the file format on different | |
227 | platforms.") | |
228 | (license license:artistic2.0))) | |
229 | ||
33a212bf SR |
230 | (define-public pwsafe-cli |
231 | (let ((commit "c49a0541b66647ad04d19ddb351d264054c67759") | |
232 | (revision "0")) | |
233 | (package | |
234 | (name "pwsafe-cli") | |
b158341d | 235 | (version (git-version "0.2.0" revision commit)) |
33a212bf SR |
236 | (source |
237 | (origin | |
238 | (method git-fetch) | |
239 | (uri (git-reference | |
240 | (url "https://github.com/nsd20463/pwsafe") | |
241 | (commit commit))) | |
242 | (sha256 | |
243 | (base32 | |
244 | "0ak09r1l7k57m6pdx468hhzvz0szmaq42vyr575fvsjc8rbrp8qq")) | |
245 | (file-name (git-file-name name version)))) | |
246 | (build-system gnu-build-system) | |
247 | (arguments | |
aac6dd5b NG |
248 | ;; FIXME: skip failing test suite (requires write access to /tmp), |
249 | ;; patching path does not help somehow. | |
250 | `(#:tests? #f | |
33a212bf SR |
251 | #:phases |
252 | (modify-phases %standard-phases | |
aac6dd5b NG |
253 | (replace 'bootstrap |
254 | (lambda _ | |
255 | (invoke "aclocal") | |
256 | (invoke "autoheader") | |
257 | (invoke "automake" "--add-missing") | |
258 | (invoke "autoconf") | |
259 | #t))))) | |
33a212bf SR |
260 | (native-inputs |
261 | `(("autoconf" ,autoconf) | |
262 | ("automake" ,automake))) | |
263 | (inputs | |
aac6dd5b NG |
264 | `(("libx11" ,libx11) |
265 | ("libxmu" ,libxmu) | |
33a212bf | 266 | ("libxt" ,libxt) |
aac6dd5b | 267 | ("openssl" ,openssl))) |
33a212bf SR |
268 | (home-page "https://github.com/nsd20463/pwsafe") |
269 | (synopsis "CLI password manager") | |
aac6dd5b NG |
270 | (description |
271 | "@command{pwsafe} is a command line tool compatible with | |
272 | Counterpane's Passwordsafe.") | |
484c5659 | 273 | (license license:gpl2+)))) |
33a212bf | 274 | |
dd24e906 DT |
275 | (define-public shroud |
276 | (package | |
277 | (name "shroud") | |
7dff3225 | 278 | (version "0.1.2") |
dd24e906 DT |
279 | (source (origin |
280 | (method url-fetch) | |
a652eb93 | 281 | (uri (string-append "https://files.dthompson.us/shroud/shroud-" |
dd24e906 DT |
282 | version ".tar.gz")) |
283 | (sha256 | |
284 | (base32 | |
7dff3225 | 285 | "1l2shrhvcwfzkar9qiwb75nhcqmx25iz55lzmz0c187nbjhqzi9p")))) |
dd24e906 | 286 | (build-system gnu-build-system) |
7dff3225 AS |
287 | (native-inputs |
288 | `(("pkg-config" ,pkg-config))) | |
df0e8a23 | 289 | (arguments |
7dff3225 AS |
290 | `(#:modules ((guix build gnu-build-system) |
291 | (guix build utils) | |
292 | (ice-9 popen) | |
293 | (ice-9 rdelim)) | |
294 | #:phases | |
df0e8a23 SB |
295 | (modify-phases %standard-phases |
296 | (add-after 'install 'wrap-shroud | |
7dff3225 | 297 | (lambda* (#:key inputs outputs #:allow-other-keys) |
df0e8a23 | 298 | (let* ((out (assoc-ref outputs "out")) |
7dff3225 AS |
299 | (guile (assoc-ref inputs "guile")) |
300 | (effective (read-line | |
301 | (open-pipe* OPEN_READ | |
302 | (string-append guile "/bin/guile") | |
303 | "-c" "(display (effective-version))"))) | |
304 | (ccachedir (string-append out | |
305 | "/lib/guile/" effective "/site-ccache")) | |
df0e8a23 SB |
306 | (prog (string-append out "/bin/shroud"))) |
307 | (wrap-program prog | |
308 | `("GUILE_LOAD_COMPILED_PATH" ":" prefix (,ccachedir))) | |
309 | #t)))))) | |
dd24e906 | 310 | (inputs |
7dff3225 | 311 | `(("guile" ,guile-2.2) |
dd24e906 DT |
312 | ("gnupg" ,gnupg) |
313 | ("xclip" ,xclip))) | |
314 | (synopsis "GnuPG-based secret manager") | |
315 | (description "Shroud is a simple secret manager with a command line | |
316 | interface. The password database is stored as a Scheme s-expression and | |
317 | encrypted with a GnuPG key. Secrets consist of an arbitrary number of | |
318 | key/value pairs, making Shroud suitable for more than just password storage. | |
319 | For copying and pasting secrets into web browsers and other graphical | |
320 | applications, there is xclip integration." ) | |
59d915ac | 321 | (home-page "https://dthompson.us/projects/shroud.html") |
dd24e906 | 322 | (license license:gpl3+))) |
7e9b07bd AP |
323 | |
324 | (define-public yapet | |
325 | (package | |
326 | (name "yapet") | |
1385ac55 | 327 | (version "2.5") |
988f53e1 TGR |
328 | (source |
329 | (origin | |
330 | (method url-fetch) | |
331 | (uri (string-append "https://yapet.guengel.ch/downloads/yapet-" | |
332 | version ".tar.xz")) | |
333 | (sha256 | |
1385ac55 | 334 | (base32 "0hpibsdry259cmvps35isr6jn9cd9fsk3r1h0ppjx9zxfrpqwldg")))) |
7e9b07bd | 335 | (build-system gnu-build-system) |
5fb085da TGR |
336 | (arguments |
337 | `(#:configure-flags | |
338 | (list (string-append "--docdir=" (assoc-ref %outputs "out") | |
339 | "/share/doc",name "-" ,version)))) | |
7e9b07bd | 340 | (inputs |
988f53e1 TGR |
341 | `(("argon2" ,argon2) |
342 | ("ncurses" ,ncurses) | |
7e9b07bd AP |
343 | ("openssl" ,openssl))) |
344 | (native-inputs | |
988f53e1 TGR |
345 | `(("cppunit" ,cppunit) |
346 | ("pkg-config" ,pkg-config))) | |
7e9b07bd AP |
347 | (synopsis "Yet Another Password Encryption Tool") |
348 | (description "YAPET is a text based password manager using the Blowfish | |
349 | encryption algorithm. Because of its small footprint and very few library | |
350 | dependencies, it is suited for installing on desktop and server systems alike. | |
351 | The text based user interface allows you to run YAPET easily in a Secure Shell | |
352 | session. Two companion utilities enable users to convert CSV files to YAPET | |
353 | and vice versa.") | |
3fc0b54e | 354 | (home-page "https://yapet.guengel.ch/") |
7e9b07bd | 355 | (license license:gpl3+))) |
72029c8b SB |
356 | |
357 | (define-public cracklib | |
358 | (package | |
359 | (name "cracklib") | |
9081333b TGR |
360 | (version "2.9.7") |
361 | (source | |
362 | (origin | |
363 | (method url-fetch) | |
364 | (uri (string-append "https://github.com/cracklib/cracklib/" | |
365 | "releases/download/v" version "/" | |
366 | "cracklib-" version ".tar.bz2")) | |
367 | (sha256 | |
368 | (base32 "1rimpjsdnmw8f5b7k558cic41p2qy2n2yrlqp5vh7mp4162hk0py")))) | |
72029c8b | 369 | (build-system gnu-build-system) |
27faad22 FP |
370 | (arguments |
371 | `(#:phases | |
372 | (modify-phases %standard-phases | |
373 | (add-after 'install 'install-dict | |
374 | (lambda* (#:key make-flags #:allow-other-keys) | |
375 | (begin | |
376 | (chmod (string-append "util/cracklib-format") #o755) | |
377 | (apply invoke "make" "dict" make-flags) | |
378 | #t)))))) | |
72029c8b SB |
379 | (synopsis "Password checking library") |
380 | (home-page "https://github.com/cracklib/cracklib") | |
381 | (description | |
382 | "CrackLib is a library containing a C function which may be used in a | |
b1a686bb TGR |
383 | @command{passwd}-like program. The idea is simple: try to prevent users from |
384 | choosing passwords that could easily be guessed (or \"cracked\") by filtering | |
385 | them out, at the source.") | |
72029c8b | 386 | (license license:lgpl2.1))) |
c2fb2076 SB |
387 | |
388 | (define-public libpwquality | |
389 | (package | |
390 | (name "libpwquality") | |
485ee063 | 391 | (version "1.4.4") |
c2fb2076 SB |
392 | (source (origin |
393 | (method url-fetch) | |
394 | (uri (list | |
2f6a158b TGR |
395 | (string-append "https://github.com/libpwquality/libpwquality" |
396 | "/releases/download/libpwquality-" version | |
397 | "/libpwquality-" version ".tar.bz2") | |
c2fb2076 SB |
398 | (string-append "https://launchpad.net/libpwquality/trunk/" |
399 | version "/+download/" | |
2f6a158b | 400 | "libpwquality-" version ".tar.bz2"))) |
c2fb2076 SB |
401 | (sha256 |
402 | (base32 | |
485ee063 | 403 | "0id5a8bi8xnjg11g9vzrl2xbpx65mfxclxcvis7zx1v8vhisyfyl")))) |
c2fb2076 SB |
404 | (build-system gnu-build-system) |
405 | (arguments | |
9cd61289 VM |
406 | `(#:phases |
407 | (modify-phases %standard-phases | |
408 | (add-before 'configure 'set-LDFLAGS | |
409 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
410 | (setenv "LDFLAGS" | |
411 | (string-append | |
412 | "-Wl,-rpath=" | |
413 | (assoc-ref outputs "out") "/lib")) | |
414 | #t))))) | |
415 | (native-inputs | |
416 | `(("python" ,python-wrapper))) | |
c2fb2076 SB |
417 | (inputs |
418 | `(("cracklib" ,cracklib))) | |
419 | (synopsis "Password quality checker") | |
c18594dd | 420 | (home-page "https://github.com/libpwquality/libpwquality") |
c2fb2076 SB |
421 | (description |
422 | "Libpwquality is a library for password quality checking and generation of | |
423 | random passwords that pass the checks.") | |
424 | (license license:gpl2+))) | |
3d4f9d5c CAW |
425 | |
426 | (define-public assword | |
427 | (package | |
428 | (name "assword") | |
d504de26 | 429 | (version "0.11") |
3d4f9d5c CAW |
430 | (source (origin |
431 | (method url-fetch) | |
432 | (uri (list | |
433 | (string-append | |
434 | "http://http.debian.net/debian/pool/main/a/assword/" | |
435 | "assword_" version ".orig.tar.gz"))) | |
436 | (sha256 | |
437 | (base32 | |
d504de26 | 438 | "03gkb6kvsghznbcw5l7nmrc6mn3ixkjd5jcs96ni4zs9l47jf7yp")))) |
3d4f9d5c | 439 | (arguments |
f339f277 | 440 | `(;; irritatingly, tests do run but not there are two problems: |
3d4f9d5c CAW |
441 | ;; - "import gtk" fails for unknown reasons here despite it the |
442 | ;; program working (indeed, I've found I have to do a logout and log | |
443 | ;; back in in after an install order for some mumbo jumbo environment | |
444 | ;; variable mess to work with pygtk and assword... what's up with | |
445 | ;; that?) | |
446 | ;; - even when the tests fail, they don't return a nonzero status, | |
447 | ;; so I'm not sure how to programmatically get that information | |
448 | #:tests? #f | |
449 | #:phases | |
450 | (modify-phases %standard-phases | |
0050876b SB |
451 | (add-after 'install 'wrap-assword |
452 | (lambda* (#:key outputs #:allow-other-keys) | |
453 | (let ((prog (string-append | |
454 | (assoc-ref outputs "out") | |
455 | "/bin/assword")) | |
456 | (gi-typelib-path (getenv "GI_TYPELIB_PATH"))) | |
457 | (wrap-program prog | |
458 | `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))) | |
459 | #t))) | |
3d4f9d5c CAW |
460 | (add-after 'install 'manpage |
461 | (lambda* (#:key outputs #:allow-other-keys) | |
3692cffe RW |
462 | ;; Without this substitution, it fails with |
463 | ;; ImportError: No module named 'gpg' | |
464 | (substitute* "Makefile" | |
465 | (("PYTHONPATH=.") "")) | |
466 | (invoke "make" "assword.1") | |
467 | (install-file | |
468 | "assword.1" | |
469 | (string-append (assoc-ref outputs "out") "/share/man/man1"))))))) | |
3d4f9d5c CAW |
470 | (build-system python-build-system) |
471 | (native-inputs | |
f339f277 | 472 | `(("txt2man" ,txt2man))) |
3d4f9d5c | 473 | (inputs |
0050876b SB |
474 | `(("gtk+" ,gtk+) |
475 | ("python-xdo" ,python-xdo) | |
f339f277 LF |
476 | ("python-gpg" ,python-gpg) |
477 | ("python-pygobject" ,python-pygobject))) | |
3d4f9d5c CAW |
478 | (propagated-inputs |
479 | `(("xclip" ,xclip))) | |
480 | (home-page "https://finestructure.net/assword/") | |
481 | (synopsis "Password manager") | |
482 | (description "assword is a simple password manager using GPG-wrapped | |
483 | JSON files. It has a command line interface as well as a very simple | |
484 | graphical interface, which can even \"type\" your passwords into | |
485 | any X11 window.") | |
486 | (license license:gpl3+))) | |
c285a400 JT |
487 | |
488 | (define-public password-store | |
599c4ed0 XC |
489 | (package |
490 | (name "password-store") | |
491 | (version "1.7.4") | |
492 | (source (origin | |
493 | (method git-fetch) | |
494 | (uri (git-reference | |
495 | (url "git://git.zx2c4.com/password-store") | |
496 | (commit version))) | |
497 | (sha256 | |
498 | (base32 | |
499 | "17zp9pnb3i9sd2zn9qanngmsywrb7y495ngcqs6313pv3gb83v53")) | |
500 | (file-name (git-file-name name version)))) | |
501 | (build-system gnu-build-system) | |
502 | (arguments | |
503 | '(#:phases | |
504 | (modify-phases %standard-phases | |
505 | (delete 'configure) | |
506 | (delete 'build) | |
507 | (add-before 'install 'patch-system-extension-dir | |
508 | (lambda* (#:key outputs #:allow-other-keys) | |
509 | (let* ((out (assoc-ref outputs "out")) | |
510 | (extension-dir (string-append out "/lib/password-store/extensions"))) | |
511 | (substitute* "src/password-store.sh" | |
512 | (("^SYSTEM_EXTENSION_DIR=.*$") | |
513 | ;; lead with whitespace to prevent 'make install' from | |
514 | ;; overwriting it again | |
515 | (string-append " SYSTEM_EXTENSION_DIR=\"" | |
516 | "${PASSWORD_STORE_SYSTEM_EXTENSION_DIR:-" | |
517 | extension-dir | |
518 | "}\"\n")))) | |
519 | #t)) | |
520 | (add-before 'install 'patch-passmenu-path | |
521 | (lambda* (#:key inputs #:allow-other-keys) | |
522 | (substitute* "contrib/dmenu/passmenu" | |
523 | (("dmenu") (string-append (assoc-ref inputs "dmenu") | |
524 | "/bin/dmenu")) | |
525 | (("xdotool") (string-append (assoc-ref inputs "xdotool") | |
526 | "/bin/xdotool"))) | |
527 | #t)) | |
528 | (add-after 'install 'install-passmenu | |
529 | (lambda* (#:key outputs #:allow-other-keys) | |
530 | (let* ((out (assoc-ref outputs "out")) | |
531 | (bin (string-append out "/bin"))) | |
532 | (install-file "contrib/dmenu/passmenu" bin) | |
533 | #t))) | |
534 | (add-after 'install 'wrap-path | |
535 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
536 | (let ((out (assoc-ref outputs "out")) | |
537 | (path (map (lambda (pkg) | |
538 | (string-append (assoc-ref inputs pkg) "/bin")) | |
539 | '("coreutils" "getopt" "git" "gnupg" "qrencode" | |
540 | "sed" "tree" "which" "wl-clipboard" "xclip")))) | |
541 | (wrap-program (string-append out "/bin/pass") | |
542 | `("PATH" ":" prefix (,(string-join path ":")))) | |
543 | #t)))) | |
544 | #:make-flags (list "CC=gcc" (string-append "PREFIX=" %output) | |
545 | "WITH_ALLCOMP=yes" | |
546 | (string-append "BASHCOMPDIR=" | |
547 | %output "/etc/bash_completion.d")) | |
548 | ;; Parallel tests may cause a race condition leading to a | |
549 | ;; timeout in some circumstances. | |
550 | #:parallel-tests? #f | |
551 | #:test-target "test")) | |
552 | (native-search-paths | |
553 | (list (search-path-specification | |
554 | (variable "PASSWORD_STORE_SYSTEM_EXTENSION_DIR") | |
555 | (separator #f) ;single entry | |
556 | (files '("lib/password-store/extensions"))))) | |
557 | (inputs | |
558 | `(("dmenu" ,dmenu) | |
559 | ("getopt" ,util-linux) | |
560 | ("git" ,git) | |
561 | ("gnupg" ,gnupg) | |
562 | ("qrencode" ,qrencode) | |
563 | ("sed" ,sed) | |
564 | ("tree" ,tree) | |
565 | ("which" ,which) | |
566 | ("wl-clipboard" ,wl-clipboard) | |
567 | ("xclip" ,xclip) | |
568 | ("xdotool" ,xdotool))) | |
569 | (home-page "https://www.passwordstore.org/") | |
570 | (synopsis "Encrypted password manager") | |
571 | (description "Password-store is a password manager which uses GnuPG to | |
c285a400 JT |
572 | store and retrieve passwords. The tool stores each password in its own |
573 | GnuPG-encrypted file, allowing the program to be simple yet secure. | |
574 | Synchronization is possible using the integrated git support, which commits | |
575 | changes to your password database to a git repository that can be managed | |
576 | through the pass command.") | |
599c4ed0 | 577 | (license license:gpl2+))) |
6d32dd8c | 578 | |
54b41d2d AG |
579 | (define-public pass-otp |
580 | (package | |
581 | (name "pass-otp") | |
582 | (version "1.2.0") | |
583 | (source | |
584 | (origin | |
585 | (method url-fetch) | |
586 | (uri | |
587 | (string-append "https://github.com/tadfisher/pass-otp/releases/" | |
588 | "download/v" version "/pass-otp-" version ".tar.gz")) | |
589 | (sha256 | |
590 | (base32 | |
591 | "0rrs3iazq80dn0wbl20xkh270428jd8l99m5gd7hl93s4r4sc82p")))) | |
592 | (build-system gnu-build-system) | |
593 | (arguments | |
594 | '(#:make-flags | |
595 | (let* ((out (assoc-ref %outputs "out")) | |
596 | (bashcomp (string-append out "/etc/bash_completion.d"))) | |
597 | (list (string-append "PREFIX=" %output) | |
598 | (string-append "BASHCOMPDIR=" bashcomp))) | |
599 | #:phases | |
600 | (modify-phases %standard-phases | |
601 | (delete 'configure) | |
602 | (add-after 'build 'patch-oath-path | |
603 | (lambda* (#:key inputs #:allow-other-keys) | |
604 | (substitute* "otp.bash" | |
605 | (("^OATH=.*$") | |
606 | (string-append | |
607 | "OATH=" | |
608 | (assoc-ref inputs "oath-toolkit") | |
609 | "/bin/oathtool\n"))) | |
610 | #t))) | |
611 | #:test-target "test")) | |
612 | (inputs | |
613 | `(("oath-toolkit" ,oath-toolkit))) | |
614 | (native-inputs | |
615 | `(("password-store" ,password-store) | |
616 | ("expect" ,expect) | |
617 | ("git" ,git) | |
618 | ("gnupg" ,gnupg) | |
619 | ("which" ,which))) | |
620 | (home-page "https://github.com/tadfisher/pass-otp") | |
621 | (synopsis "Pass extension for managing one-time-password (OTP) tokens") | |
622 | (description | |
623 | "Pass OTP is an extension for password-store that allows adding | |
624 | one-time-password (OTP) secrets, generating OTP codes, and displaying secret | |
625 | key URIs using the standard otpauth:// scheme.") | |
626 | (license license:gpl3+))) | |
627 | ||
872da48e JM |
628 | (define-public qtpass |
629 | (package | |
630 | (name "qtpass") | |
e1e9baf2 | 631 | (version "1.3.2") |
872da48e JM |
632 | (source |
633 | (origin | |
634 | (method git-fetch) | |
635 | (uri (git-reference | |
b0e7b699 | 636 | (url "https://github.com/IJHack/QtPass") |
872da48e JM |
637 | (commit (string-append "v" version)))) |
638 | (file-name (git-file-name name version)) | |
639 | (sha256 | |
640 | (base32 | |
e1e9baf2 | 641 | "0748hjvhjrybi33ci3c8hcr74k9pdrf5jv8npf9hrsrmdyy1kr9x")))) |
872da48e JM |
642 | (build-system gnu-build-system) |
643 | (arguments | |
73d9caba EF |
644 | `(#:modules ((guix build gnu-build-system) |
645 | (guix build qt-utils) | |
646 | (guix build utils)) | |
647 | #:imported-modules (,@%gnu-build-system-modules | |
648 | (guix build qt-utils)) | |
649 | #:phases | |
872da48e JM |
650 | (modify-phases %standard-phases |
651 | (replace 'configure | |
652 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
653 | (let ((out (assoc-ref outputs "out"))) | |
654 | ;; lupdate/lrelease need to find qmake. | |
655 | (setenv "QMAKE" "qmake") | |
656 | ;; qmake needs to find lrelease/lupdate. | |
657 | (invoke "qmake" | |
658 | "QMAKE_LRELEASE=lrelease" | |
659 | "QMAKE_LUPDATE=lupdate" | |
660 | (string-append "PREFIX=" out))))) | |
661 | (add-after 'configure 'reset-resource-timestamps | |
662 | ;; Reset timestamps on localization files for a reproducible build. | |
663 | (lambda _ | |
664 | (with-directory-excursion "localization" | |
665 | (for-each (lambda (file) | |
666 | (let* ((base (basename file ".qm")) | |
667 | (src (string-append base ".ts")) | |
668 | (st (stat src))) | |
669 | (set-file-time file st))) | |
670 | (find-files "." ".*\\.qm"))) | |
671 | #t)) | |
672 | (add-after 'install 'install-auxilliary | |
673 | ;; Install man-page, icon and .desktop file. | |
674 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
675 | (let* ((out (assoc-ref outputs "out")) | |
676 | (applications (string-append out "/share/applications")) | |
677 | (icons (string-append out "/share/icons/hicolor/scalable/apps")) | |
678 | (man (string-append out "/share/man/man1"))) | |
679 | (install-file "qtpass.desktop" applications) | |
680 | (install-file "artwork/icon.svg" icons) | |
681 | (rename-file (string-append icons "/icon.svg") | |
682 | (string-append icons "/qtpass-icon.svg")) | |
683 | (install-file "qtpass.1" man) | |
684 | #t))) | |
73d9caba | 685 | (add-after 'install 'wrap-qt |
7e24e1e5 HG |
686 | (lambda* (#:key outputs inputs #:allow-other-keys) |
687 | (let ((out (assoc-ref outputs "out"))) | |
688 | (wrap-qt-program "qtpass" #:output out #:inputs inputs)) | |
73d9caba | 689 | #t)) |
872da48e JM |
690 | (add-before 'check 'check-setup |
691 | ;; Make Qt render "offscreen", required for tests. | |
692 | (lambda _ | |
693 | (setenv "QT_QPA_PLATFORM" "offscreen") | |
694 | #t))))) | |
695 | (native-inputs | |
696 | `(("qttools" ,qttools))) | |
697 | (inputs | |
ea0a5107 | 698 | `(("qtbase" ,qtbase-5) |
872da48e JM |
699 | ("qtsvg" ,qtsvg))) |
700 | (home-page "https://qtpass.org") | |
701 | (synopsis "GUI for password manager password-store") | |
702 | (description | |
703 | "Qt-based graphical user interface for the password manager | |
704 | password-store also known as pass. Can use either pass or gpg to interact | |
705 | with password-store files. Features configurable password generation, | |
706 | templates, clipboard handling, and per folder settings for multi-recipient | |
707 | encryption.") | |
708 | (license license:gpl3+))) | |
709 | ||
f59ea3a7 TLC |
710 | (define-public rofi-pass |
711 | (package | |
712 | (name "rofi-pass") | |
713 | (version "2.0.2") | |
714 | (source | |
715 | (origin | |
716 | (method url-fetch) | |
717 | (uri | |
718 | (string-append "https://raw.githubusercontent.com/carnager/rofi-pass/" | |
719 | version "/rofi-pass")) | |
720 | (sha256 | |
721 | (base32 "0msldkndqp40nx1s5s7ggcr97ir4nshpmnyzvj5hqw1l7m3gvw6j")) | |
722 | (file-name name))) | |
723 | (build-system trivial-build-system) | |
724 | (arguments | |
725 | `(#:modules ((guix build utils)) | |
726 | #:builder | |
727 | (begin | |
728 | (use-modules (guix build utils)) | |
729 | (let ((source (string-append (assoc-ref %build-inputs "source"))) | |
730 | (script "rofi-pass") | |
731 | (out (assoc-ref %outputs "out"))) | |
732 | (copy-file source script) | |
733 | (chmod script #o555) | |
734 | (install-file script (string-append out "/bin")))))) | |
735 | (propagated-inputs | |
736 | `(("password-store" ,password-store) | |
737 | ("rofi" ,rofi) | |
738 | ("xdotool" ,xdotool))) | |
739 | (home-page "https://github.com/carnager/rofi-pass") | |
740 | (synopsis "Rofi frontend for password-store") | |
741 | (description "Rofi-pass provides a way to manipulate information stored | |
742 | using password-store through rofi interface: | |
743 | @enumerate | |
744 | @item open URLs of entries with hotkey; | |
745 | @item type any field from entry; | |
746 | @item auto-typing of user and/or password fields; | |
747 | @item auto-typing username based on path; | |
748 | @item auto-typing of more than one field, using the autotype entry; | |
749 | @item bookmarks mode (open stored URLs in browser, default: Alt+x). | |
750 | @end enumerate") | |
751 | (license license:gpl3))) | |
752 | ||
63299f28 AG |
753 | (define-public browserpass-native |
754 | (package | |
755 | (name "browserpass-native") | |
291afa0f | 756 | (version "3.0.7") |
63299f28 AG |
757 | (source |
758 | (origin | |
759 | (method git-fetch) | |
760 | (uri (git-reference | |
b0e7b699 | 761 | (url "https://github.com/browserpass/browserpass-native") |
63299f28 AG |
762 | (commit version))) |
763 | (file-name (git-file-name name version)) | |
764 | (sha256 | |
765 | (base32 | |
291afa0f | 766 | "1jkjslbbac49xjyjkc2b07phdm3i64z40kh6h55cl22dxjmpp1nb")))) |
63299f28 AG |
767 | (build-system go-build-system) |
768 | (arguments | |
769 | `(#:import-path "github.com/browserpass/browserpass-native" | |
770 | #:install-source? #f | |
771 | #:phases | |
772 | (modify-phases %standard-phases | |
773 | (add-before 'build 'patch-makefile | |
774 | (lambda* (#:key outputs #:allow-other-keys) | |
775 | (let ((out (assoc-ref outputs "out"))) | |
776 | ;; This doesn't go in #:make-flags because the Makefile itself | |
777 | ;; gets installed. | |
778 | (substitute* | |
779 | "src/github.com/browserpass/browserpass-native/Makefile" | |
780 | (("PREFIX \\?= /usr") | |
781 | (string-append "PREFIX ?= " out))) | |
782 | #t))) | |
783 | (add-before 'build 'configure | |
784 | (lambda _ | |
785 | (with-directory-excursion | |
786 | "src/github.com/browserpass/browserpass-native" | |
787 | (invoke "make" "configure")) | |
788 | #t)) | |
789 | (replace 'build | |
790 | (lambda _ | |
791 | (with-directory-excursion | |
792 | "src/github.com/browserpass/browserpass-native" | |
793 | (invoke "make")) | |
794 | #t)) | |
795 | (replace 'install | |
796 | (lambda _ | |
797 | (with-directory-excursion | |
798 | "src/github.com/browserpass/browserpass-native" | |
799 | (invoke "make" "install")) | |
800 | #t)) | |
801 | (add-after 'install 'wrap-executable | |
802 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
803 | (let ((out (assoc-ref outputs "out")) | |
804 | (gnupg (assoc-ref inputs "gnupg"))) | |
805 | (wrap-program (string-append out "/bin/browserpass") | |
806 | `("PATH" ":" prefix | |
807 | (,(string-append gnupg "/bin")))) | |
808 | #t)))))) | |
809 | (native-inputs | |
810 | `(("which" ,which))) | |
811 | (inputs | |
812 | `(("gnupg" ,gnupg) | |
813 | ("go-github-com-mattn-go-zglob" ,go-github-com-mattn-go-zglob) | |
814 | ("go-github-com-rifflock-lfshook" ,go-github-com-rifflock-lfshook) | |
815 | ("go-github-com-sirupsen-logrus" ,go-github-com-sirupsen-logrus) | |
816 | ("go-golang-org-x-sys" ,go-golang-org-x-sys))) | |
817 | (home-page "https://github.com/browserpass/browserpass-native") | |
818 | (synopsis "Browserpass native messaging host") | |
819 | (description "Browserpass is a browser extension for pass, a | |
820 | UNIX-based password store manager. It allows you to auto-fill or copy to | |
821 | clipboard credentials for the current domain, protecting you from phishing | |
822 | attacks. | |
823 | ||
824 | This package only contains the Browserpass native messaging host. You must | |
825 | also install the browser extension for GNU IceCat or ungoogled-chromium | |
826 | separately.") | |
827 | (license license:isc))) | |
828 | ||
6d32dd8c LG |
829 | (define-public argon2 |
830 | (package | |
831 | (name "argon2") | |
fe109349 | 832 | (version "20190702") |
6d32dd8c LG |
833 | (source |
834 | (origin | |
c600cf2a EF |
835 | (method git-fetch) |
836 | (uri (git-reference | |
837 | (url "https://github.com/P-H-C/phc-winner-argon2") | |
838 | (commit version))) | |
839 | (file-name (git-file-name name version)) | |
6d32dd8c LG |
840 | (sha256 |
841 | (base32 | |
fe109349 | 842 | "01rwanr4wmr9vm6c712x411wig543q195z2icn388z892a93lc7p")))) |
6d32dd8c LG |
843 | (build-system gnu-build-system) |
844 | (arguments | |
845 | `(#:test-target "test" | |
fe109349 EF |
846 | #:make-flags (list "CC=gcc" |
847 | (string-append "PREFIX=" (assoc-ref %outputs "out")) | |
848 | "LIBRARY_REL=lib" | |
849 | (string-append "ARGON2_VERSION=" ,version) | |
850 | "OPTTEST=1") ; disable CPU optimization | |
6d32dd8c LG |
851 | #:phases |
852 | (modify-phases %standard-phases | |
fe109349 | 853 | (delete 'configure)))) ; No configure script. |
6d32dd8c LG |
854 | (home-page "https://www.argon2.com/") |
855 | (synopsis "Password hashing library") | |
856 | (description "Argon2 provides a key derivation function that was declared | |
857 | winner of the 2015 Password Hashing Competition.") | |
c06bf6a3 MB |
858 | ;; Argon2 is dual licensed under CC0 and ASL 2.0. Some of the source |
859 | ;; files are CC0 only; see README.md and LICENSE for details. | |
860 | (license (list license:cc0 license:asl2.0)))) | |
153e58c5 | 861 | |
a1714ff5 JL |
862 | (define-public pass-git-helper |
863 | (package | |
864 | (name "pass-git-helper") | |
b70f9ad1 | 865 | (version "1.1.0") |
a1714ff5 JL |
866 | (source |
867 | (origin | |
df58cc9c EF |
868 | (method git-fetch) |
869 | (uri (git-reference | |
870 | (url "https://github.com/languitar/pass-git-helper") | |
b70f9ad1 | 871 | (commit (string-append "v" version)))) |
df58cc9c | 872 | (file-name (git-file-name name version)) |
a1714ff5 JL |
873 | (sha256 |
874 | (base32 | |
b70f9ad1 | 875 | "18nvwlp0w4aqj268wly60rnjzqw2d8jl0hbs6bkwp3hpzzz5g6yd")))) |
a1714ff5 JL |
876 | (build-system python-build-system) |
877 | (arguments | |
878 | `(#:phases | |
879 | (modify-phases %standard-phases | |
880 | (add-before 'build 'patch-pass-path | |
881 | (lambda* (#:key inputs #:allow-other-keys) | |
882 | (let* ((password-store (assoc-ref inputs "password-store")) | |
883 | (pass (string-append password-store "/bin/pass"))) | |
54bcc27f EF |
884 | (substitute* '("passgithelper.py" |
885 | "test_passgithelper.py") | |
a1714ff5 | 886 | (("'pass'") (string-append "'" pass "'"))) |
b70f9ad1 | 887 | #t))) |
54bcc27f | 888 | (replace 'check |
b70f9ad1 EF |
889 | (lambda _ |
890 | (setenv "HOME" (getcwd)) | |
54bcc27f | 891 | (invoke "pytest")))))) |
a1714ff5 JL |
892 | (inputs |
893 | `(("python-pyxdg" ,python-pyxdg) | |
894 | ("password-store" ,password-store))) | |
b70f9ad1 EF |
895 | (native-inputs |
896 | `(("python-pytest" ,python-pytest) | |
897 | ("python-pytest-mock" ,python-pytest-mock))) | |
a1714ff5 JL |
898 | (home-page "https://github.com/languitar/pass-git-helper") |
899 | (synopsis "Git credential helper interfacing with pass") | |
7133049f VC |
900 | (description "pass-git-helper is a git credential helper which |
901 | uses pass, the standard unix password manager, as the credential backend for | |
a1714ff5 JL |
902 | your git repositories. This is achieved by explicitly defining mappings |
903 | between hosts and entries in the password store.") | |
904 | (license license:lgpl3+))) | |
eb28a777 EB |
905 | |
906 | (define-public john-the-ripper-jumbo | |
e57c7dd7 | 907 | (let ((official-version "1.9.0") |
eb28a777 EB |
908 | (jumbo-version "1")) |
909 | (package | |
910 | (name "john-the-ripper-jumbo") | |
911 | (version (string-append official-version "-" jumbo-version)) | |
912 | (source | |
913 | (origin | |
914 | (method url-fetch) | |
915 | (uri (string-append "http://www.openwall.com/john/j/john-" | |
916 | official-version "-jumbo-" jumbo-version ".tar.xz")) | |
917 | (sha256 | |
918 | (base32 | |
e57c7dd7 | 919 | "0fvz3v41hnaiv1ggpxanfykyfjq79cwp9qcqqn63vic357w27lgm")))) |
eb28a777 | 920 | (build-system gnu-build-system) |
e57c7dd7 EB |
921 | (native-inputs |
922 | `(("perl" ,perl))) | |
eb28a777 EB |
923 | (inputs |
924 | `(("gmp" ,gmp) | |
eb28a777 EB |
925 | ("libpcap" ,libpcap) |
926 | ("nss" ,nss) | |
9de990ba | 927 | ("openssl" ,openssl) |
e57c7dd7 EB |
928 | ("python" ,python-2) ; For "python" and "python2" shebangs |
929 | ("ruby" ,ruby) ; For genincstats.rb | |
eb28a777 EB |
930 | ("zlib" ,zlib))) |
931 | (arguments | |
932 | `(#:configure-flags | |
e57c7dd7 EB |
933 | (list "--with-systemwide" |
934 | ;; Do not test for instruction set in configure, and do not | |
935 | ;; pass '-march=native' to gcc: | |
eb28a777 | 936 | "--disable-native-tests" |
e57c7dd7 EB |
937 | "--disable-native-march" |
938 | ,(string-append | |
939 | "--enable-simd=" | |
940 | (let ((system (or (%current-target-system) | |
941 | (%current-system)))) | |
942 | (cond | |
943 | ((or (string-prefix? "x86_64" system) | |
944 | (string-prefix? "i686" system)) "sse2") | |
945 | ((string-prefix? "aarch" system) "neon") | |
946 | (else "no"))))) | |
eb28a777 EB |
947 | #:phases |
948 | (modify-phases %standard-phases | |
949 | (add-before 'configure 'chdir-src | |
e57c7dd7 | 950 | (lambda _ (chdir "src") #t)) |
eb28a777 EB |
951 | (replace 'install |
952 | (lambda _ | |
953 | (let ((bindir (string-append %output "/bin")) | |
954 | (docdir (string-append %output "/share/doc/john")) | |
955 | (execdir (string-append %output "/libexec/john")) | |
e57c7dd7 | 956 | (datadir (string-append %output "/share/john")) |
eb28a777 EB |
957 | (install-file-to (lambda (dir) |
958 | (lambda (f) (install-file f dir)))) | |
959 | (symlink? (lambda (_ s) (eq? (stat:type s) 'symlink)))) | |
960 | (with-directory-excursion "../run" | |
e57c7dd7 EB |
961 | (for-each (install-file-to bindir) |
962 | (cons* | |
963 | "john" "makechr" "cprepair" "SIPdump" "tgtsnarf" | |
964 | "genmkvpwd" "mkvcalcproba" "calc_stat" "raw2dyna" | |
965 | (find-files "." "(to|2)?john(-[^.]*)?$"))) | |
966 | (for-each (lambda (f) ; Install symlinked aliases | |
967 | (let ((tgt (string-append bindir "/" (basename f)))) | |
968 | ;; The use of install-file above dereferences | |
969 | ;; symlinks. We'd rather have the symlinks | |
970 | ;; for clarity, so remove tgt before linking. | |
971 | (when (file-exists? tgt) (delete-file tgt)) | |
972 | (symlink "john" tgt))) | |
973 | (find-files "." symlink?)) | |
eb28a777 | 974 | (for-each (install-file-to execdir) |
e57c7dd7 EB |
975 | (cons* "mailer" "benchmark-unify" "relbench" |
976 | (find-files "." ".*\\.js"))) | |
977 | (for-each (lambda (f) | |
978 | (let* ((base (basename f)) | |
979 | (name (substring base 0 (string-index base #\.))) | |
980 | (link (string-append bindir "/" name))) | |
981 | (install-file f execdir) | |
982 | (when (and (executable-file? f) | |
983 | (not (file-exists? link))) | |
984 | (symlink (string-append execdir "/" base) link)))) | |
985 | (find-files "." ".*\\.(pl|py|rb|lua)")) | |
986 | (for-each (install-file-to datadir) | |
eb28a777 EB |
987 | (append (find-files "." "(stats|dictionary.*)") |
988 | (find-files "." "(.*\\.chr|.*\\.lst)") | |
989 | (find-files "." ".*\\.conf"))) | |
e57c7dd7 | 990 | (copy-recursively "rules" (string-append datadir "/rules"))) |
eb28a777 | 991 | (copy-recursively "../doc" docdir) |
4090dcb2 EB |
992 | #t))) |
993 | (delete 'check) ; Tests need installed .conf files; move after install | |
994 | (add-after 'install 'check | |
995 | (lambda args | |
996 | (setenv "HOME" "/tmp") ; Some tests need to write to ~/.john | |
997 | (setenv "OMP_NUM_THREADS" (number->string (parallel-job-count))) | |
998 | (apply (assoc-ref %standard-phases 'check) args)))))) | |
eb28a777 EB |
999 | (home-page "http://www.openwall.com/john/") |
1000 | (synopsis "Password cracker") | |
1001 | (description "John the Ripper is a fast password cracker. Its primary | |
1002 | purpose is to detect weak Unix passwords. Besides several @code{crypt} | |
1003 | password hash types most commonly found on various Unix systems, supported out | |
1004 | of the box are Windows LM hashes, plus lots of other hashes and ciphers. This | |
1005 | is the community-enhanced, \"jumbo\" version of John the Ripper.") | |
1006 | (license license:gpl2+)))) | |
649eb8b5 KH |
1007 | |
1008 | (define-public sala | |
1009 | (package | |
1010 | (name "sala") | |
1011 | (version "1.3") | |
1012 | (source | |
1013 | (origin | |
1014 | (method url-fetch) | |
1015 | (uri (pypi-uri "sala" version)) | |
1016 | (sha256 | |
1017 | (base32 | |
1018 | "13qgmc3i2a0cqp8jqrfl93lnphfagb32pgfikc1gza2a14asxzi8")))) | |
1019 | (build-system python-build-system) | |
1020 | (arguments | |
1021 | ;; Sala is supposed to work with Python 3.2 or higher, | |
1022 | ;; but it doesn't work with Python 3.6. Better stick | |
1023 | ;; to Python 2, which works fine. | |
1024 | `(#:python ,python-2)) | |
1025 | (propagated-inputs | |
1026 | `(("gnupg" ,gnupg) | |
1027 | ("pwgen" ,pwgen))) | |
1028 | (home-page "http://www.digip.org/sala/") | |
1029 | (synopsis "Encrypted plaintext password store") | |
1030 | (description | |
1031 | "Store passwords and other bits of sensitive plain-text information | |
1032 | to encrypted files on a directory hierarchy. The information is protected | |
1033 | by GnuPG's symmetrical encryption.") | |
1034 | (license license:expat))) | |
d4e0ebd0 T |
1035 | |
1036 | (define-public fpm2 | |
1037 | (package | |
1038 | (name "fpm2") | |
1039 | (version "0.79") | |
1040 | (source (origin | |
1041 | (method url-fetch) | |
1042 | (uri (string-append "https://als.regnet.cz/fpm2/download/fpm2-" | |
1043 | version ".tar.bz2")) | |
1044 | (sha256 | |
1045 | (base32 | |
1046 | "19sdy1lygfhkg5nxi2w9a4d9kwvw24nxp0ix0p0lz91qpvk9qpnm")))) | |
1047 | (build-system gnu-build-system) | |
1048 | (inputs `(("gtk2" ,gtk+-2) | |
1049 | ("gnupg" ,gnupg) | |
1050 | ("libxml2" ,libxml2))) | |
1051 | (native-inputs `(("pkg-config" ,pkg-config) | |
1052 | ("intltool" ,intltool))) | |
1053 | (arguments | |
1054 | `(#:phases | |
1055 | (modify-phases %standard-phases | |
1056 | (add-before 'configure 'pre-configure | |
1057 | ;; The file po/POTFILES.in ends up missing for some reason in | |
1058 | ;; both nix and guix builds. Adding the file with contents | |
1059 | ;; found during troubleshooting. | |
1060 | (lambda _ | |
1061 | (call-with-output-file "po/POTFILES.in" | |
1062 | (lambda (port) | |
1063 | (format port "data/fpm2.desktop.in | |
1064 | data/fpm2.desktop.in.in | |
1065 | fpm2.glade | |
1066 | src/callbacks.c | |
1067 | src/fpm.c | |
1068 | src/fpm_file.c | |
1069 | src/interface.c | |
1070 | src/support.c | |
1071 | fpm2.glade | |
1072 | "))) | |
1073 | #t))))) | |
1074 | (synopsis "Manage, generate and store passwords encrypted") | |
1075 | (description "FPM2 is GTK2 port from Figaro's Password Manager | |
1076 | originally developed by John Conneely, with some new enhancements. | |
1077 | ||
1078 | Upstream development seems to have stopped. It is therefore recommended | |
1079 | to use a different password manager.") | |
1080 | (home-page "https://als.regnet.cz/fpm2/") | |
1081 | (license license:gpl2+))) | |
20b51b17 AI |
1082 | |
1083 | (define-public pass-rotate | |
1084 | (package | |
1085 | (name "pass-rotate") | |
1086 | (version "0.1") | |
1087 | (source | |
e1a94fe0 EF |
1088 | (origin |
1089 | (method git-fetch) | |
1090 | (uri (git-reference | |
659204ff | 1091 | (url "https://github.com/ddevault/pass-rotate") |
e1a94fe0 EF |
1092 | (commit version))) |
1093 | (file-name (git-file-name name version)) | |
1094 | (sha256 | |
1095 | (base32 | |
1096 | "1m067vvdlc85csbpkp8aw4s3ags7q8s3jszrr32kmj9qhk5c254f")))) | |
20b51b17 AI |
1097 | (build-system python-build-system) |
1098 | (inputs | |
1099 | `(("python-beautifulsoup4" ,python-beautifulsoup4) | |
1100 | ("python-docopt" ,python-docopt) | |
1101 | ("python-html5lib" ,python-html5lib) | |
1102 | ("python-requests" ,python-requests))) | |
659204ff | 1103 | (home-page "https://github.com/ddevault/pass-rotate") |
20b51b17 AI |
1104 | (synopsis "Rotate password on online services") |
1105 | (description "pass-rotate is a command line utility and python library for | |
1106 | rotating passwords on various web services. It makes it easier to rotate your | |
1107 | passwords, one at a time or in bulk, when security events or routine upkeep of | |
1108 | your online accounts makes it necessary.") | |
1109 | (license license:expat))) | |
c10aa278 PN |
1110 | |
1111 | (define-public hashcat | |
1112 | (package | |
1113 | (name "hashcat") | |
4af67aa2 | 1114 | (version "6.1.1") |
c10aa278 PN |
1115 | (source |
1116 | (origin | |
1117 | (method url-fetch) | |
1118 | (uri (string-append "https://hashcat.net/files/hashcat-" | |
1119 | version ".tar.gz")) | |
1120 | (sha256 | |
1121 | (base32 | |
4af67aa2 | 1122 | "104z63m7lqbb0sdrxhf9yi15l4a9zwf9m6zs9dbb3gf0nfxl1h9r")))) |
c10aa278 PN |
1123 | (native-inputs |
1124 | `(("opencl-headers" ,opencl-headers))) | |
1125 | (build-system gnu-build-system) | |
1126 | (arguments | |
1127 | '(#:tests? #f ;no tests | |
1128 | #:make-flags (list (string-append "PREFIX=" %output)) | |
1129 | #:phases | |
1130 | (modify-phases %standard-phases | |
1131 | (delete 'configure)))) | |
1132 | (home-page "https://hashcat.net/hashcat/") | |
1133 | (synopsis "Advanced password recovery utility") | |
1134 | (description "Hashcat is an password recovery utility, supporting five | |
1135 | unique modes of attack for over 200 highly-optimized hashing algorithms. | |
1136 | Hashcat currently supports CPUs, GPUs, and other hardware accelerators on | |
1137 | Linux, Windows, and macOS, and has facilities to help enable distributed | |
1138 | password cracking.") | |
1139 | (license license:expat))) | |
eb4ffe9b PN |
1140 | |
1141 | (define-public hashcat-utils | |
1142 | (package | |
1143 | (name "hashcat-utils") | |
2b9b4b1f | 1144 | (version "1.9") |
eb4ffe9b PN |
1145 | (source |
1146 | (origin | |
1147 | (method url-fetch) | |
2b9b4b1f TGR |
1148 | (uri (string-append "https://github.com/hashcat/hashcat-utils/releases/" |
1149 | "download/v" version "/" | |
1150 | "hashcat-utils-" version ".7z")) | |
eb4ffe9b | 1151 | (sha256 |
2b9b4b1f | 1152 | (base32 "0kq555kb338691qd7zjmi8vhq4km3apnsl2w63zh0igwzcjx6lx1")))) |
eb4ffe9b PN |
1153 | (native-inputs |
1154 | `(("p7zip" ,p7zip))) | |
1155 | (inputs | |
1156 | `(("perl" ,perl))) | |
1157 | (build-system gnu-build-system) | |
1158 | (arguments | |
1159 | `(#:tests? #f ;no tests | |
1160 | #:make-flags (list "CC=gcc" | |
1161 | ;; Upstream bug(?): "make all" seems to remove the | |
1162 | ;; Perl scripts from the source. | |
1163 | "native") | |
1164 | #:phases | |
1165 | (modify-phases %standard-phases | |
1166 | (replace 'unpack | |
1167 | (lambda* (#:key source #:allow-other-keys) | |
1168 | (invoke "7z" "x" source) | |
1169 | (chdir (string-append "hashcat-utils-" ,version "/src")) | |
1170 | #t)) | |
1171 | (delete 'configure) | |
1172 | (replace 'install | |
1173 | (lambda* (#:key outputs #:allow-other-keys) | |
1174 | (let ((out (string-append (assoc-ref outputs "out") "/bin"))) | |
1175 | (mkdir-p out) | |
2b9b4b1f TGR |
1176 | (for-each |
1177 | (lambda (file) | |
1178 | (copy-file file (string-append out "/" | |
1179 | (basename file ".bin")))) | |
1180 | (find-files "." "\\.bin$")) | |
1181 | (for-each | |
1182 | (lambda (file) | |
1183 | (copy-file file (string-append out "/" | |
1184 | (basename file ".pl")))) | |
1185 | (find-files "../bin" "\\.pl$")) | |
eb4ffe9b PN |
1186 | #t)))))) |
1187 | (home-page "https://github.com/hashcat/hashcat-utils/") | |
1188 | (synopsis "Small utilities that are useful in advanced password cracking") | |
1189 | (description "Hashcat-utils are a set of small utilities that are useful | |
1190 | in advanced password cracking. They all are packed into multiple stand-alone | |
1191 | binaries. All of these utils are designed to execute only one specific | |
1192 | function. Since they all work with @code{STDIN} and @code{STDOUT} you can | |
1193 | group them into chains.") | |
1194 | (license license:expat))) | |
d823fd96 GLV |
1195 | |
1196 | (define-public bruteforce-luks | |
1197 | (package | |
1198 | (name "bruteforce-luks") | |
1199 | (version "1.4.0") | |
1200 | (source | |
1201 | (origin | |
1202 | (method url-fetch) | |
1203 | (uri (string-append "https://github.com/glv2/bruteforce-luks/releases/download/" | |
1204 | version | |
1205 | "/bruteforce-luks-" | |
1206 | version | |
1207 | ".tar.lz")) | |
1208 | (sha256 | |
1209 | (base32 "0yawrlbbklhmvwr99wm7li3r0d5kxvpkwf33a12rji7z0ya5p340")))) | |
1210 | (build-system gnu-build-system) | |
1211 | (native-inputs | |
1212 | `(("lzip" ,lzip))) | |
1213 | (inputs | |
1214 | `(("cryptsetup" ,cryptsetup))) | |
1215 | (synopsis "LUKS encrypted volume cracker") | |
1216 | (description | |
1217 | "This is a cracker for LUKS encrypted volumes. It can be used either in | |
1218 | exhaustive mode to try every password given a charset or in dictionary mode to | |
1219 | try every password contained in a file.") | |
1220 | (home-page "https://github.com/glv2/bruteforce-luks") | |
1221 | (license license:gpl3+))) | |
b2b9b227 JBN |
1222 | |
1223 | (define-public makepasswd | |
1224 | (let ((commit "3545d57d3a589a392d7eb0df36a5286785345c9e") | |
1225 | (revision "1")) | |
1226 | (package | |
1227 | (name "makepasswd") | |
1228 | (version (git-version "0.5.4" revision commit)) | |
1229 | (source | |
1230 | (origin | |
1231 | (method git-fetch) | |
1232 | (uri (git-reference | |
1233 | (url "https://github.com/khorben/makepasswd") | |
1234 | (commit commit))) | |
1235 | (file-name (git-file-name name version)) | |
1236 | (sha256 | |
1237 | (base32 "0lspqyyxbk6h28yxnp7pd5aib161vrkzgasam5jpzn35n1jacx2j")))) | |
1238 | (build-system gnu-build-system) | |
1239 | (native-inputs | |
1240 | `(("pkg-config" ,pkg-config) | |
1241 | ("libxslt" ,libxslt) | |
1242 | ("libxml2" ,libxml2) | |
1243 | ("docbook-xsl" ,docbook-xsl) | |
1244 | ("docbook-xml" ,docbook-xml))) | |
1245 | (inputs | |
1246 | `(("openssl" ,openssl))) | |
1247 | (arguments | |
1248 | `(#:phases | |
1249 | (modify-phases %standard-phases | |
1250 | (delete 'configure)) | |
1251 | #:make-flags (list "CC=gcc" | |
1252 | (string-append "PREFIX=" (assoc-ref %outputs "out"))) | |
1253 | #:tests? #f)) ;no tests | |
1254 | (synopsis "Generate (pseudo-)random passwords and hashes") | |
1255 | (description | |
1256 | "Makepasswd is a program that generates pseudo-random passwords of a | |
1257 | desired length. It can also generate their corresponding hashes for a given | |
1258 | encryption algorithm if so desired.") | |
1259 | (home-page "https://github.com/khorben/makepasswd") | |
1260 | (license license:gpl3)))) | |
36a1925f BW |
1261 | |
1262 | (define-public pass-tomb | |
1263 | (package | |
1264 | (name "pass-tomb") | |
1265 | (version "1.2") | |
1266 | (source | |
1267 | (origin | |
1268 | (method git-fetch) | |
1269 | (uri (git-reference | |
1270 | (url "https://github.com/roddhjav/pass-tomb") | |
1271 | (commit (string-append "v" version)))) | |
1272 | (file-name (git-file-name name version)) | |
1273 | (sha256 | |
1274 | (base32 "1qj7vx7svk1ljwihj3kv310k17mafnf919n30n4qn1yxmmsvj924")))) | |
1275 | (build-system gnu-build-system) | |
1276 | (arguments | |
1277 | `(#:make-flags | |
1278 | (let ((out (assoc-ref %outputs "out"))) | |
1279 | (list (string-append "PREFIX=" out) | |
1280 | (string-append "BASHCOMPDIR=" out "/etc/bash_completion.d"))) | |
1281 | #:test-target "tests" | |
1282 | ;; tests are very dependent on system state (swap partition) and require | |
1283 | ;; access to /tmp/zsh which is not in the build container. | |
1284 | #:tests? #f | |
1285 | #:phases | |
1286 | (modify-phases %standard-phases | |
1287 | (add-after 'unpack 'set-tomb-path | |
1288 | (lambda* (#:key inputs #:allow-other-keys) | |
1289 | (let ((tomb (assoc-ref inputs "tomb"))) | |
1290 | (substitute* "tomb.bash" | |
1291 | ((":-tomb") | |
1292 | (string-append ":-" tomb "/bin/tomb")))))) | |
1293 | (delete 'configure)))) | |
1294 | (inputs | |
1295 | `(("tomb" ,tomb))) | |
1296 | (home-page "https://github.com/roddhjav/pass-tomb") | |
1297 | (synopsis "Pass extension keeping the tree of passwords encrypted") | |
1298 | (description "Pass-tomb provides a convenient solution to put your | |
1299 | password store in a Tomb and then keep your password tree encrypted when you | |
1300 | are not using it. It uses the same GPG key to encrypt passwords and tomb, | |
1301 | therefore you don't need to manage more key or secret. Moreover, you can ask | |
1302 | pass-tomb to automatically close your store after a given time.") | |
1303 | (license license:gpl3+))) |