You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1268 lines
51 KiB

gnu: Move testing packages from python.scm to check.scm. * gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api, python-mock, python2-mock, python-mock-2, python-nose, python2-nose, python-nose2, python2-nose2, python-unittest2, python2-unittest2, python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0, python-pytest-cov, python2-pytest-cov, python-pytest-runner, python2-pytest-runner, python-pytest-mock, python2-pytest-mock, python-pytest-xdist, python2-pytest-xdist, python-scripttest, python2-scripttest, python-testtools, python2-testtools, python-testscenarios, python2-testscenarios, python-testresources, python2-testresources, python-subunit, python2-subunit, python-fixtures, python2-fixtures, python-testrepository, python2-testrepository, python-coverage, python2-coverage, python-cov-core, python2-cov-core, python-testpath, python2-testpath, python-testlib, python2-testlib, python-pytest-cache, python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess, python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis, python2-hypothesis, python-lit, python2-lit, python-pytest-pep8, python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes, python2-coverage-test-runner, python-pylint, python2-pylint, python-paramunittest, python2-python-paramunittest, python-pytest-warnings, python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog, python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover, python2-nosexcover, python-discover, python2-discover, behave, python-rednose, python2-rednose, python-nose-randomly, python2-nose-randomly, python-nose-timer, python2-nose-timer): Move from here... * gnu/packages/check.scm: ...to here. * gnu/packages/admin.scm, gnu/packages/android.scm, gnu/packages/backup.scm, gnu/packages/bioinformatics.scm, gnu/packages/calendar.scm, gnu/packages/dav.scm, gnu/packages/django.scm, gnu/packages/freedesktop.scm, gnu/packages/haskell.scm, gnu/packages/image.scm, gnu/packages/irc.scm, gnu/packages/jrnl.scm, gnu/packages/ldc.scm, gnu/packages/libffi.scm, gnu/packages/mail.scm, gnu/packages/mpd.scm, gnu/packages/openstack.scm, gnu/packages/package-management.scm, gnu/packages/password-utils.scm, gnu/packages/python-crypto.scm, gnu/packages/python-web.scm, gnu/packages/rdf.scm, gnu/packages/statistics.scm, gnu/packages/storage.scm, gnu/packages/time.scm, gnu/packages/tls.scm, gnu/packages/tor.scm, gnu/packages/tryton.scm: Adjust accordingly.
4 years ago
gnu: Separate Python core packages from the rest. * gnu/packages/python.scm: Move hundreds of package definitions from here... * gnu/packages/python-xyz.scm: ...to this new module. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. * gnu/packages/ada.scm, gnu/packages/admin.scm, gnu/packages/android.scm, gnu/packages/audio.scm, gnu/packages/backup.scm, gnu/packages/benchmark.scm, gnu/packages/bioinformatics.scm, gnu/packages/bittorrent.scm, gnu/packages/calendar.scm, gnu/packages/check.scm, gnu/packages/chemistry.scm, gnu/packages/cluster.scm, gnu/packages/compression.scm, gnu/packages/connman.scm, gnu/packages/crypto.scm, gnu/packages/cups.scm, gnu/packages/databases.scm, gnu/packages/dav.scm, gnu/packages/direct-connect.scm, gnu/packages/disk.scm, gnu/packages/django.scm, gnu/packages/dlang.scm, gnu/packages/docker.scm, gnu/packages/ebook.scm, gnu/packages/elf.scm, gnu/packages/emacs.scm, gnu/packages/emulators.scm, gnu/packages/engineering.scm, gnu/packages/enlightenment.scm, gnu/packages/finance.scm, gnu/packages/fltk.scm, gnu/packages/fontutils.scm, gnu/packages/freedesktop.scm, gnu/packages/game-development.scm, gnu/packages/games.scm, gnu/packages/geo.scm, gnu/packages/gl.scm, gnu/packages/glib.scm, gnu/packages/gnome.scm, gnu/packages/gnupg.scm, gnu/packages/gnuzilla.scm, gnu/packages/graph.scm, gnu/packages/graphics.scm, gnu/packages/graphviz.scm, gnu/packages/gtk.scm, gnu/packages/ham-radio.scm, gnu/packages/image-processing.scm, gnu/packages/image-viewers.scm, gnu/packages/image.scm, gnu/packages/irc.scm, gnu/packages/jrnl.scm, gnu/packages/julia.scm, gnu/packages/kde-frameworks.scm, gnu/packages/key-mon.scm, gnu/packages/libffi.scm, gnu/packages/libreoffice.scm, gnu/packages/libusb.scm, gnu/packages/lirc.scm, gnu/packages/logging.scm, gnu/packages/machine-learning.scm, gnu/packages/mail.scm, gnu/packages/mate.scm, gnu/packages/maths.scm, gnu/packages/medical.scm, gnu/packages/messaging.scm, gnu/packages/monitoring.scm, gnu/packages/mp3.scm, gnu/packages/mpd.scm, gnu/packages/music.scm, gnu/packages/networking.scm, gnu/packages/nutrition.scm, gnu/packages/openldap.scm, gnu/packages/openstack.scm, gnu/packages/package-management.scm, gnu/packages/password-utils.scm, gnu/packages/patchutils.scm, gnu/packages/pdf.scm, gnu/packages/photo.scm, gnu/packages/polkit.scm, gnu/packages/protobuf.scm, gnu/packages/python-crypto.scm, gnu/packages/python-web.scm, gnu/packages/qt.scm, gnu/packages/rdf.scm, gnu/packages/ruby.scm, gnu/packages/search.scm, gnu/packages/selinux.scm, gnu/packages/serialization.scm, gnu/packages/shells.scm, gnu/packages/simulation.scm, gnu/packages/ssh.scm, gnu/packages/statistics.scm, gnu/packages/storage.scm, gnu/packages/sync.scm, gnu/packages/terminals.scm, gnu/packages/textutils.scm, gnu/packages/time.scm, gnu/packages/tls.scm, gnu/packages/tor.scm, gnu/packages/tryton.scm, gnu/packages/version-control.scm, gnu/packages/video.scm, gnu/packages/virtualization.scm, gnu/packages/vpn.scm, gnu/packages/web-browsers.scm, gnu/packages/web.scm, gnu/packages/wicd.scm, gnu/packages/xdisorg.scm, gnu/packages/xorg.scm: Update module references.
3 years ago
gnu: Update URLs for sourceforge.net. * gnu/packages/admin.scm: Update URLs pointing to sourceforge.net. * gnu/packages/audacity.scm: Likewise. * gnu/packages/audio.scm: Likewise. * gnu/packages/bioinformatics.scm: Likewise. * gnu/packages/boost.scm: Likewise. * gnu/packages/cdrom.scm: Likewise. * gnu/packages/code.scm: Likewise. * gnu/packages/compression.scm: Likewise. * gnu/packages/cups.scm: Likewise. * gnu/packages/djvu.scm: Likewise. * gnu/packages/docbook.scm: Likewise. * gnu/packages/documentation.scm: Likewise. * gnu/packages/flashing-tools.scm: Likewise. * gnu/packages/fonts.scm: Likewise. * gnu/packages/fontutils.scm: Likewise. * gnu/packages/games.scm: Likewise. * gnu/packages/ghostscript.scm: Likewise. * gnu/packages/gl.scm: Likewise. * gnu/packages/gnucash.scm: Likewise. * gnu/packages/graphviz.scm: Likewise. * gnu/packages/image.scm: Likewise. * gnu/packages/libreoffice.scm: Likewise. * gnu/packages/libusb.scm: Likewise. * gnu/packages/linux.scm: Likewise. * gnu/packages/lirc.scm: Likewise. * gnu/packages/maths.scm: Likewise. * gnu/packages/mcrypt.scm: Likewise. * gnu/packages/mp3.scm: Likewise. * gnu/packages/music.scm: Likewise. * gnu/packages/networking.scm: Likewise. * gnu/packages/onc-rpc.scm: Likewise. * gnu/packages/password-utils.scm: Likewise. * gnu/packages/pdf.scm: Likewise. * gnu/packages/perl.scm: Likewise. * gnu/packages/photo.scm: Likewise. * gnu/packages/popt.scm: Likewise. * gnu/packages/python.scm: Likewise. * gnu/packages/rdesktop.scm: Likewise. * gnu/packages/screen.scm: Likewise. * gnu/packages/swig.scm: Likewise. * gnu/packages/tcl.scm: Likewise. * gnu/packages/version-control.scm: Likewise. * gnu/packages/video.scm: Likewise. * gnu/packages/w3m.scm: Likewise. * gnu/packages/web.scm: Likewise. * gnu/packages/wm.scm: Likewise. * gnu/packages/xdisorg.scm: Likewise. * gnu/packages/xml.scm: Likewise.
5 years ago
gnu: Remove ".git" from "https://github/…/….git". Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix swh) would sometimes return #f for these because the ".git" URLs are redirects to the non-".git" URLs. Consequently, 'guix lint -c archival' would keep saying "scheduled Software Heritage archival"; likewise, the fallback download code would fail. * gnu/packages/ada.scm, gnu/packages/admin.scm, gnu/packages/aidc.scm, gnu/packages/algebra.scm, gnu/packages/android.scm, gnu/packages/animation.scm, gnu/packages/arcan.scm, gnu/packages/assembly.scm, gnu/packages/audio.scm, gnu/packages/authentication.scm, gnu/packages/avr.scm, gnu/packages/axoloti.scm, gnu/packages/backup.scm, gnu/packages/bash.scm, gnu/packages/benchmark.scm, gnu/packages/bioconductor.scm, gnu/packages/bioinformatics.scm, gnu/packages/bittorrent.scm, gnu/packages/boost.scm, gnu/packages/build-tools.scm, gnu/packages/c.scm, gnu/packages/calendar.scm, gnu/packages/cdrom.scm, gnu/packages/check.scm, gnu/packages/chemistry.scm, gnu/packages/chez.scm, gnu/packages/clojure.scm, gnu/packages/code.scm, gnu/packages/compression.scm, gnu/packages/compton.scm, gnu/packages/coq.scm, gnu/packages/cpp.scm, gnu/packages/cran.scm, gnu/packages/crypto.scm, gnu/packages/curl.scm, gnu/packages/databases.scm, gnu/packages/datastructures.scm, gnu/packages/debug.scm, gnu/packages/disk.scm, gnu/packages/distributed.scm, gnu/packages/django.scm, gnu/packages/dlang.scm, gnu/packages/dns.scm, gnu/packages/docker.scm, gnu/packages/education.scm, gnu/packages/efi.scm, gnu/packages/elixir.scm, gnu/packages/emacs-xyz.scm, gnu/packages/embedded.scm, gnu/packages/emulators.scm, gnu/packages/engineering.scm, gnu/packages/erlang.scm, gnu/packages/fabric-management.scm, gnu/packages/file-systems.scm, gnu/packages/finance.scm, gnu/packages/firmware.scm, gnu/packages/flashing-tools.scm, gnu/packages/fonts.scm, gnu/packages/fontutils.scm, gnu/packages/fpga.scm, gnu/packages/game-development.scm, gnu/packages/games.scm, gnu/packages/genealogy.scm, gnu/packages/genimage.scm, gnu/packages/geo.scm, gnu/packages/gimp.scm, gnu/packages/gl.scm, gnu/packages/gnome-xyz.scm, gnu/packages/gnome.scm, gnu/packages/gnuzilla.scm, gnu/packages/golang.scm, gnu/packages/gpodder.scm, gnu/packages/graph.scm, gnu/packages/graphics.scm, gnu/packages/graphviz.scm, gnu/packages/groff.scm, gnu/packages/groovy.scm, gnu/packages/gtk.scm, gnu/packages/guile-xyz.scm, gnu/packages/guile.scm, gnu/packages/hardware.scm, gnu/packages/haskell-apps.scm, gnu/packages/haskell-xyz.scm, gnu/packages/hexedit.scm, gnu/packages/i2p.scm, gnu/packages/ibus.scm, gnu/packages/image-processing.scm, gnu/packages/image-viewers.scm, gnu/packages/image.scm, gnu/packages/ipfs.scm, gnu/packages/java-graphics.scm, gnu/packages/java-maths.scm, gnu/packages/java.scm, gnu/packages/javascript.scm, gnu/packages/jrnl.scm, gnu/packages/julia.scm, gnu/packages/jupyter.scm, gnu/packages/kodi.scm, gnu/packages/language.scm, gnu/packages/lego.scm, gnu/packages/less.scm, gnu/packages/libusb.scm, gnu/packages/linux.scm, gnu/packages/lirc.scm, gnu/packages/lisp-xyz.scm, gnu/packages/llvm.scm, gnu/packages/logging.scm, gnu/packages/lolcode.scm, gnu/packages/lua.scm, gnu/packages/lxde.scm, gnu/packages/lxqt.scm, gnu/packages/machine-learning.scm, gnu/packages/mail.scm, gnu/packages/markup.scm, gnu/packages/maths.scm, gnu/packages/maven.scm, gnu/packages/mes.scm, gnu/packages/messaging.scm, gnu/packages/monitoring.scm, gnu/packages/mpd.scm, gnu/packages/music.scm, gnu/packages/networking.scm, gnu/packages/node-xyz.scm, gnu/packages/ocaml.scm, gnu/packages/ocr.scm, gnu/packages/onc-rpc.scm, gnu/packages/opencl.scm, gnu/packages/opencog.scm, gnu/packages/pantheon.scm, gnu/packages/password-utils.scm, gnu/packages/patchutils.scm, gnu/packages/pdf.scm, gnu/packages/perl6.scm, gnu/packages/phabricator.scm, gnu/packages/popt.scm, gnu/packages/printers.scm, gnu/packages/prolog.scm, gnu/packages/protobuf.scm, gnu/packages/pulseaudio.scm, gnu/packages/python-crypto.scm, gnu/packages/python-web.scm, gnu/packages/python-xyz.scm, gnu/packages/qt.scm, gnu/packages/radio.scm, gnu/packages/rails.scm, gnu/packages/rdf.scm, gnu/packages/rednotebook.scm, gnu/packages/rpc.scm, gnu/packages/rsync.scm, gnu/packages/ruby.scm, gnu/packages/rust.scm, gnu/packages/scheme.scm, gnu/packages/screen.scm, gnu/packages/security-token.scm, gnu/packages/selinux.scm, gnu/packages/serialization.scm, gnu/packages/shells.scm, gnu/packages/shellutils.scm, gnu/packages/simh.scm, gnu/packages/sml.scm, gnu/packages/ssh.scm, gnu/packages/statistics.scm, gnu/packages/stenography.scm, gnu/packages/sync.scm, gnu/packages/syncthing.scm, gnu/packages/synergy.scm, gnu/packages/telephony.scm, gnu/packages/terminals.scm, gnu/packages/tex.scm, gnu/packages/texinfo.scm, gnu/packages/text-editors.scm, gnu/packages/textutils.scm, gnu/packages/time.scm, gnu/packages/tmux.scm, gnu/packages/tor.scm, gnu/packages/toys.scm, gnu/packages/version-control.scm, gnu/packages/video.scm, gnu/packages/vim.scm, gnu/packages/virtualization.scm, gnu/packages/vlang.scm, gnu/packages/vnc.scm, gnu/packages/vpn.scm, gnu/packages/web-browsers.scm, gnu/packages/web.scm, gnu/packages/wireservice.scm, gnu/packages/wm.scm, gnu/packages/wxwidgets.scm, gnu/packages/xdisorg.scm, gnu/packages/xml.scm, gnu/packages/xorg.scm, tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
1 year ago
gnu: util-linux: Move libraries to separate output. Fixes <https://bugs.gnu.org/37732>. Reported by Diego Nicola Barbato <dnbarbato@posteo.de>. * gnu/packages/linux.scm (util-linux)[outputs]: Add "lib". [arguments]: Update #:configure-flags and the "move-static-libraries" phase accordingly. Add phases "patch-build-scripts" and "adjust-pkg-config-files". (e2fsprogs, psm, mtd-utils, f2fs-tools, f2fs-tools-1.7, eudev, xfsprogs)[inputs]: Change to the "lib" output of UTIL-LINUX. (btrfs-progs)[inputs]: Remove duplicate UTIL-LINUX inputs and change to use the "lib" output. * gnu/packages/admin.scm (pam-mount)[inputs]: Add UTIL-LINUX:LIB. (testdisk)[inputs]: Change to the "lib" output of UTIL-LINUX. * gnu/packages/android.scm (abootimg)[inputs]: Likewise. * gnu/packages/audio.scm (jack-1)[propagated-inputs]: Likewise. * gnu/packages/bootloaders.scm (syslinux, vboot-utils)[inputs]: Likewise. * gnu/packages/chez.scm (chez-scheme)[inputs]: Likewise. * gnu/packages/cryptsetup.scm (cryptsetup, cryptsetup-static)[inputs]: Likewise. * gnu/packages/databases.scm (postgresql, 4store)[inputs]: Likewise. * gnu/packages/disk.scm (ndctl, gptfdisk, fdisk, gparted, rmlint, volume-key)[inputs]: Likewise. (parted)[inputs]: Likewise. [native-inputs]: Add UTIL-LINUX. * gnu/packages/efi.scm (sbsigntools)[inputs]: Add UTIL-LINUX:LIB. * gnu/packages/engineering.scm (lib3mf)[inputs]: Change to the "lib" output of UTIL-LINUX. * gnu/packages/enlightenment.scm (efl)[propagated-inputs]: Likewise. * gnu/packages/file-systems.scm (glusterfs, jfsutils, zfs)[inputs]: Likewise. * gnu/packages/firmware.scm (ovmf)[inputs]: Likewise. * gnu/packages/fontutils.scm (fontconfig)[propagated-inputs]: Likewise. * gnu/packages/freedesktop.scm (localed)[inputs]: Likewise. * gnu/packages/glib.scm (glib, appstream-glib)[propagated-inputs]: Likewise. * gnu/packages/gnome.scm (tracker, gnome-terminal)[inputs]: Likewise. * gnu/packages/jupyter.scm (xeus)[inputs]: Likewise. * gnu/packages/kde.scm (kpmcore)[inputs]: Likewise. * gnu/packages/kodi.scm (crossguid)[inputs]: Likewise. * gnu/packages/lighting.scm (ola)[inputs]: Likewise. * gnu/packages/music.scm (libgig)[inputs]: Likewise. * gnu/packages/nfs.scm (nfs-utils)[inputs]: Likewise. * gnu/packages/opencog.scm (opencog)[inputs]: Likewise. * gnu/packages/package-management.scm (msitools)[inputs]: Change to the "lib" output of UTIL-LINUX. * gnu/packages/password-utils.scm (pwsafe)[inputs]: Likewise. * gnu/packages/telephony.scm (pjproject)[propagated-inputs]: Likewise. * gnu/packages/rdf.scm (rasqal)[inputs]: Likewise. * gnu/packages/search.scm (xapian)[inputs]: Likewise. * gnu/packages/sssd.scm (sssd)[native-inputs]: Likewise. * gnu/packages/storage.scm (ceph)[inputs]: Add UTIL-LINUX:LIB. * gnu/packages/task-management.scm (taskwarrior)[inputs]: Change to the "lib" output of UTIL-LINUX. * gnu/packages/virtualization.scm (libvirt, xen)[inputs]: Likewise. * gnu/packages/xorg.scm (libsm)[inputs]: Likewise.
2 years ago
gnu: Remove ".git" from "https://github/…/….git". Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix swh) would sometimes return #f for these because the ".git" URLs are redirects to the non-".git" URLs. Consequently, 'guix lint -c archival' would keep saying "scheduled Software Heritage archival"; likewise, the fallback download code would fail. * gnu/packages/ada.scm, gnu/packages/admin.scm, gnu/packages/aidc.scm, gnu/packages/algebra.scm, gnu/packages/android.scm, gnu/packages/animation.scm, gnu/packages/arcan.scm, gnu/packages/assembly.scm, gnu/packages/audio.scm, gnu/packages/authentication.scm, gnu/packages/avr.scm, gnu/packages/axoloti.scm, gnu/packages/backup.scm, gnu/packages/bash.scm, gnu/packages/benchmark.scm, gnu/packages/bioconductor.scm, gnu/packages/bioinformatics.scm, gnu/packages/bittorrent.scm, gnu/packages/boost.scm, gnu/packages/build-tools.scm, gnu/packages/c.scm, gnu/packages/calendar.scm, gnu/packages/cdrom.scm, gnu/packages/check.scm, gnu/packages/chemistry.scm, gnu/packages/chez.scm, gnu/packages/clojure.scm, gnu/packages/code.scm, gnu/packages/compression.scm, gnu/packages/compton.scm, gnu/packages/coq.scm, gnu/packages/cpp.scm, gnu/packages/cran.scm, gnu/packages/crypto.scm, gnu/packages/curl.scm, gnu/packages/databases.scm, gnu/packages/datastructures.scm, gnu/packages/debug.scm, gnu/packages/disk.scm, gnu/packages/distributed.scm, gnu/packages/django.scm, gnu/packages/dlang.scm, gnu/packages/dns.scm, gnu/packages/docker.scm, gnu/packages/education.scm, gnu/packages/efi.scm, gnu/packages/elixir.scm, gnu/packages/emacs-xyz.scm, gnu/packages/embedded.scm, gnu/packages/emulators.scm, gnu/packages/engineering.scm, gnu/packages/erlang.scm, gnu/packages/fabric-management.scm, gnu/packages/file-systems.scm, gnu/packages/finance.scm, gnu/packages/firmware.scm, gnu/packages/flashing-tools.scm, gnu/packages/fonts.scm, gnu/packages/fontutils.scm, gnu/packages/fpga.scm, gnu/packages/game-development.scm, gnu/packages/games.scm, gnu/packages/genealogy.scm, gnu/packages/genimage.scm, gnu/packages/geo.scm, gnu/packages/gimp.scm, gnu/packages/gl.scm, gnu/packages/gnome-xyz.scm, gnu/packages/gnome.scm, gnu/packages/gnuzilla.scm, gnu/packages/golang.scm, gnu/packages/gpodder.scm, gnu/packages/graph.scm, gnu/packages/graphics.scm, gnu/packages/graphviz.scm, gnu/packages/groff.scm, gnu/packages/groovy.scm, gnu/packages/gtk.scm, gnu/packages/guile-xyz.scm, gnu/packages/guile.scm, gnu/packages/hardware.scm, gnu/packages/haskell-apps.scm, gnu/packages/haskell-xyz.scm, gnu/packages/hexedit.scm, gnu/packages/i2p.scm, gnu/packages/ibus.scm, gnu/packages/image-processing.scm, gnu/packages/image-viewers.scm, gnu/packages/image.scm, gnu/packages/ipfs.scm, gnu/packages/java-graphics.scm, gnu/packages/java-maths.scm, gnu/packages/java.scm, gnu/packages/javascript.scm, gnu/packages/jrnl.scm, gnu/packages/julia.scm, gnu/packages/jupyter.scm, gnu/packages/kodi.scm, gnu/packages/language.scm, gnu/packages/lego.scm, gnu/packages/less.scm, gnu/packages/libusb.scm, gnu/packages/linux.scm, gnu/packages/lirc.scm, gnu/packages/lisp-xyz.scm, gnu/packages/llvm.scm, gnu/packages/logging.scm, gnu/packages/lolcode.scm, gnu/packages/lua.scm, gnu/packages/lxde.scm, gnu/packages/lxqt.scm, gnu/packages/machine-learning.scm, gnu/packages/mail.scm, gnu/packages/markup.scm, gnu/packages/maths.scm, gnu/packages/maven.scm, gnu/packages/mes.scm, gnu/packages/messaging.scm, gnu/packages/monitoring.scm, gnu/packages/mpd.scm, gnu/packages/music.scm, gnu/packages/networking.scm, gnu/packages/node-xyz.scm, gnu/packages/ocaml.scm, gnu/packages/ocr.scm, gnu/packages/onc-rpc.scm, gnu/packages/opencl.scm, gnu/packages/opencog.scm, gnu/packages/pantheon.scm, gnu/packages/password-utils.scm, gnu/packages/patchutils.scm, gnu/packages/pdf.scm, gnu/packages/perl6.scm, gnu/packages/phabricator.scm, gnu/packages/popt.scm, gnu/packages/printers.scm, gnu/packages/prolog.scm, gnu/packages/protobuf.scm, gnu/packages/pulseaudio.scm, gnu/packages/python-crypto.scm, gnu/packages/python-web.scm, gnu/packages/python-xyz.scm, gnu/packages/qt.scm, gnu/packages/radio.scm, gnu/packages/rails.scm, gnu/packages/rdf.scm, gnu/packages/rednotebook.scm, gnu/packages/rpc.scm, gnu/packages/rsync.scm, gnu/packages/ruby.scm, gnu/packages/rust.scm, gnu/packages/scheme.scm, gnu/packages/screen.scm, gnu/packages/security-token.scm, gnu/packages/selinux.scm, gnu/packages/serialization.scm, gnu/packages/shells.scm, gnu/packages/shellutils.scm, gnu/packages/simh.scm, gnu/packages/sml.scm, gnu/packages/ssh.scm, gnu/packages/statistics.scm, gnu/packages/stenography.scm, gnu/packages/sync.scm, gnu/packages/syncthing.scm, gnu/packages/synergy.scm, gnu/packages/telephony.scm, gnu/packages/terminals.scm, gnu/packages/tex.scm, gnu/packages/texinfo.scm, gnu/packages/text-editors.scm, gnu/packages/textutils.scm, gnu/packages/time.scm, gnu/packages/tmux.scm, gnu/packages/tor.scm, gnu/packages/toys.scm, gnu/packages/version-control.scm, gnu/packages/video.scm, gnu/packages/vim.scm, gnu/packages/virtualization.scm, gnu/packages/vlang.scm, gnu/packages/vnc.scm, gnu/packages/vpn.scm, gnu/packages/web-browsers.scm, gnu/packages/web.scm, gnu/packages/wireservice.scm, gnu/packages/wm.scm, gnu/packages/wxwidgets.scm, gnu/packages/xdisorg.scm, gnu/packages/xml.scm, gnu/packages/xorg.scm, tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
1 year ago
gnu: Remove ".git" from "https://github/…/….git". Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix swh) would sometimes return #f for these because the ".git" URLs are redirects to the non-".git" URLs. Consequently, 'guix lint -c archival' would keep saying "scheduled Software Heritage archival"; likewise, the fallback download code would fail. * gnu/packages/ada.scm, gnu/packages/admin.scm, gnu/packages/aidc.scm, gnu/packages/algebra.scm, gnu/packages/android.scm, gnu/packages/animation.scm, gnu/packages/arcan.scm, gnu/packages/assembly.scm, gnu/packages/audio.scm, gnu/packages/authentication.scm, gnu/packages/avr.scm, gnu/packages/axoloti.scm, gnu/packages/backup.scm, gnu/packages/bash.scm, gnu/packages/benchmark.scm, gnu/packages/bioconductor.scm, gnu/packages/bioinformatics.scm, gnu/packages/bittorrent.scm, gnu/packages/boost.scm, gnu/packages/build-tools.scm, gnu/packages/c.scm, gnu/packages/calendar.scm, gnu/packages/cdrom.scm, gnu/packages/check.scm, gnu/packages/chemistry.scm, gnu/packages/chez.scm, gnu/packages/clojure.scm, gnu/packages/code.scm, gnu/packages/compression.scm, gnu/packages/compton.scm, gnu/packages/coq.scm, gnu/packages/cpp.scm, gnu/packages/cran.scm, gnu/packages/crypto.scm, gnu/packages/curl.scm, gnu/packages/databases.scm, gnu/packages/datastructures.scm, gnu/packages/debug.scm, gnu/packages/disk.scm, gnu/packages/distributed.scm, gnu/packages/django.scm, gnu/packages/dlang.scm, gnu/packages/dns.scm, gnu/packages/docker.scm, gnu/packages/education.scm, gnu/packages/efi.scm, gnu/packages/elixir.scm, gnu/packages/emacs-xyz.scm, gnu/packages/embedded.scm, gnu/packages/emulators.scm, gnu/packages/engineering.scm, gnu/packages/erlang.scm, gnu/packages/fabric-management.scm, gnu/packages/file-systems.scm, gnu/packages/finance.scm, gnu/packages/firmware.scm, gnu/packages/flashing-tools.scm, gnu/packages/fonts.scm, gnu/packages/fontutils.scm, gnu/packages/fpga.scm, gnu/packages/game-development.scm, gnu/packages/games.scm, gnu/packages/genealogy.scm, gnu/packages/genimage.scm, gnu/packages/geo.scm, gnu/packages/gimp.scm, gnu/packages/gl.scm, gnu/packages/gnome-xyz.scm, gnu/packages/gnome.scm, gnu/packages/gnuzilla.scm, gnu/packages/golang.scm, gnu/packages/gpodder.scm, gnu/packages/graph.scm, gnu/packages/graphics.scm, gnu/packages/graphviz.scm, gnu/packages/groff.scm, gnu/packages/groovy.scm, gnu/packages/gtk.scm, gnu/packages/guile-xyz.scm, gnu/packages/guile.scm, gnu/packages/hardware.scm, gnu/packages/haskell-apps.scm, gnu/packages/haskell-xyz.scm, gnu/packages/hexedit.scm, gnu/packages/i2p.scm, gnu/packages/ibus.scm, gnu/packages/image-processing.scm, gnu/packages/image-viewers.scm, gnu/packages/image.scm, gnu/packages/ipfs.scm, gnu/packages/java-graphics.scm, gnu/packages/java-maths.scm, gnu/packages/java.scm, gnu/packages/javascript.scm, gnu/packages/jrnl.scm, gnu/packages/julia.scm, gnu/packages/jupyter.scm, gnu/packages/kodi.scm, gnu/packages/language.scm, gnu/packages/lego.scm, gnu/packages/less.scm, gnu/packages/libusb.scm, gnu/packages/linux.scm, gnu/packages/lirc.scm, gnu/packages/lisp-xyz.scm, gnu/packages/llvm.scm, gnu/packages/logging.scm, gnu/packages/lolcode.scm, gnu/packages/lua.scm, gnu/packages/lxde.scm, gnu/packages/lxqt.scm, gnu/packages/machine-learning.scm, gnu/packages/mail.scm, gnu/packages/markup.scm, gnu/packages/maths.scm, gnu/packages/maven.scm, gnu/packages/mes.scm, gnu/packages/messaging.scm, gnu/packages/monitoring.scm, gnu/packages/mpd.scm, gnu/packages/music.scm, gnu/packages/networking.scm, gnu/packages/node-xyz.scm, gnu/packages/ocaml.scm, gnu/packages/ocr.scm, gnu/packages/onc-rpc.scm, gnu/packages/opencl.scm, gnu/packages/opencog.scm, gnu/packages/pantheon.scm, gnu/packages/password-utils.scm, gnu/packages/patchutils.scm, gnu/packages/pdf.scm, gnu/packages/perl6.scm, gnu/packages/phabricator.scm, gnu/packages/popt.scm, gnu/packages/printers.scm, gnu/packages/prolog.scm, gnu/packages/protobuf.scm, gnu/packages/pulseaudio.scm, gnu/packages/python-crypto.scm, gnu/packages/python-web.scm, gnu/packages/python-xyz.scm, gnu/packages/qt.scm, gnu/packages/radio.scm, gnu/packages/rails.scm, gnu/packages/rdf.scm, gnu/packages/rednotebook.scm, gnu/packages/rpc.scm, gnu/packages/rsync.scm, gnu/packages/ruby.scm, gnu/packages/rust.scm, gnu/packages/scheme.scm, gnu/packages/screen.scm, gnu/packages/security-token.scm, gnu/packages/selinux.scm, gnu/packages/serialization.scm, gnu/packages/shells.scm, gnu/packages/shellutils.scm, gnu/packages/simh.scm, gnu/packages/sml.scm, gnu/packages/ssh.scm, gnu/packages/statistics.scm, gnu/packages/stenography.scm, gnu/packages/sync.scm, gnu/packages/syncthing.scm, gnu/packages/synergy.scm, gnu/packages/telephony.scm, gnu/packages/terminals.scm, gnu/packages/tex.scm, gnu/packages/texinfo.scm, gnu/packages/text-editors.scm, gnu/packages/textutils.scm, gnu/packages/time.scm, gnu/packages/tmux.scm, gnu/packages/tor.scm, gnu/packages/toys.scm, gnu/packages/version-control.scm, gnu/packages/video.scm, gnu/packages/vim.scm, gnu/packages/virtualization.scm, gnu/packages/vlang.scm, gnu/packages/vnc.scm, gnu/packages/vpn.scm, gnu/packages/web-browsers.scm, gnu/packages/web.scm, gnu/packages/wireservice.scm, gnu/packages/wm.scm, gnu/packages/wxwidgets.scm, gnu/packages/xdisorg.scm, gnu/packages/xml.scm, gnu/packages/xorg.scm, tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
1 year ago
  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2015 Steve Sprang <scs@stevesprang.com>
  3. ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
  4. ;;; Copyright © 2015 Aljosha Papsch <misc@rpapsch.de>
  5. ;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org>
  6. ;;; Copyright © 2016 Jessica Tallon <tsyesika@tsyesika.se>
  7. ;;; Copyright © 2016 Andreas Enge <andreas@enge.fr>
  8. ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
  9. ;;; Copyright © 2016, 2019, 2020 Alex Griffin <a@ajgrf.com>
  10. ;;; Copyright © 2017 Leo Famulari <leo@famulari.name>
  11. ;;; Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org>
  12. ;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
  13. ;;; Copyright © 2017 Jelle Licht <jlicht@fsfe.org>
  14. ;;; Copyright © 2017, 2019 Eric Bavier <bavier@member.fsf.org>
  15. ;;; Copyright © 2017, 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
  16. ;;; Copyright © 2017 Manolis Fragkiskos Ragkousis <manolis837@gmail.com>
  17. ;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
  18. ;;; Copyright © 2018 Marius Bakke <mbakke@fastmail.com>
  19. ;;; Copyright © 2018 Konrad Hinsen <konrad.hinsen@fastmail.net>
  20. ;;; Copyright © 2018 Thomas Sigurdsen <tonton@riseup.net>
  21. ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
  22. ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
  23. ;;; Copyright © 2018 Amirouche Boubekki <amirouche@hypermove.net>
  24. ;;; Copyright © 2018, 2019, 2020 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
  25. ;;; Copyright © 2019 Jens Mølgaard <jens@zete.tk>
  26. ;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
  27. ;;; Copyright © 2020 Guillaume Le Vaillant <glv@posteo.net>
  28. ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
  29. ;;; Copyright © 2020 Jean-Baptiste Note <jean-baptiste.note@m4x.org>
  30. ;;;
  31. ;;; This file is part of GNU Guix.
  32. ;;;
  33. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  34. ;;; under the terms of the GNU General Public License as published by
  35. ;;; the Free Software Foundation; either version 3 of the License, or (at
  36. ;;; your option) any later version.
  37. ;;;
  38. ;;; GNU Guix is distributed in the hope that it will be useful, but
  39. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  40. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  41. ;;; GNU General Public License for more details.
  42. ;;;
  43. ;;; You should have received a copy of the GNU General Public License
  44. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  45. (define-module (gnu packages password-utils)
  46. #:use-module ((guix licenses) #:prefix license:)
  47. #:use-module (guix build-system cmake)
  48. #:use-module (guix build-system gnu)
  49. #:use-module (guix build-system go)
  50. #:use-module (guix build-system trivial)
  51. #:use-module (guix download)
  52. #:use-module (guix git-download)
  53. #:use-module (guix packages)
  54. #:use-module (gnu packages)
  55. #:use-module (gnu packages admin)
  56. #:use-module (gnu packages aidc)
  57. #:use-module (gnu packages authentication)
  58. #:use-module (gnu packages base)
  59. #:use-module (gnu packages check)
  60. #:use-module (gnu packages compression)
  61. #:use-module (gnu packages crypto)
  62. #:use-module (gnu packages cryptsetup)
  63. #:use-module (gnu packages curl)
  64. #:use-module (gnu packages docbook)
  65. #:use-module (gnu packages file)
  66. #:use-module (gnu packages freedesktop)
  67. #:use-module (gnu packages gettext)
  68. #:use-module (gnu packages glib)
  69. #:use-module (gnu packages gnupg)
  70. #:use-module (gnu packages golang)
  71. #:use-module (gnu packages gtk)
  72. #:use-module (gnu packages guile)
  73. #:use-module (gnu packages kerberos)
  74. #:use-module (gnu packages libffi)
  75. #:use-module (gnu packages linux)
  76. #:use-module (gnu packages man)
  77. #:use-module (gnu packages multiprecision)
  78. #:use-module (gnu packages ncurses)
  79. #:use-module (gnu packages nss)
  80. #:use-module (gnu packages opencl)
  81. #:use-module (gnu packages perl)
  82. #:use-module (gnu packages pkg-config)
  83. #:use-module (gnu packages python)
  84. #:use-module (gnu packages python-web)
  85. #:use-module (gnu packages python-xyz)
  86. #:use-module (gnu packages readline)
  87. #:use-module (gnu packages ruby)
  88. #:use-module (gnu packages security-token)
  89. #:use-module (gnu packages suckless)
  90. #:use-module (gnu packages tcl)
  91. #:use-module (gnu packages tls)
  92. #:use-module (gnu packages qt)
  93. #:use-module (gnu packages version-control)
  94. #:use-module (gnu packages wxwidgets)
  95. #:use-module (gnu packages xdisorg)
  96. #:use-module (gnu packages xorg)
  97. #:use-module (gnu packages xml)
  98. #:use-module (guix build-system python))
  99. (define-public pwgen
  100. (package
  101. (name "pwgen")
  102. (version "2.08")
  103. (source
  104. (origin
  105. (method url-fetch)
  106. (uri (string-append "mirror://sourceforge/pwgen/pwgen/" version
  107. "/pwgen-" version ".tar.gz"))
  108. (sha256
  109. (base32 "0yy90pqrr2pszzhb5hxjishq9qc7dqd290amiibqx9fm1b9kvc6s"))))
  110. (build-system gnu-build-system)
  111. (arguments
  112. `(#:tests? #f)) ; no test suite
  113. (home-page "http://pwgen.sourceforge.net/")
  114. (synopsis "Password generator")
  115. (description "Pwgen generates passwords which can be easily memorized by a
  116. human.")
  117. (license license:gpl2)))
  118. (define-public keepassxc
  119. (package
  120. (name "keepassxc")
  121. (version "2.6.0")
  122. (source
  123. (origin
  124. (method url-fetch)
  125. (uri (string-append "https://github.com/keepassxreboot/keepassxc"
  126. "/releases/download/" version "/keepassxc-"
  127. version "-src.tar.xz"))
  128. (sha256
  129. (base32 "0fpx6pq336g1xwjl5yzvsky6vqvaa38zb8pwkgswph9slybkvlnh"))))
  130. (build-system cmake-build-system)
  131. (arguments
  132. '(#:configure-flags '("-DWITH_XC_ALL=YES"
  133. "-DWITH_XC_UPDATECHECK=NO")
  134. #:phases
  135. (modify-phases %standard-phases
  136. (add-after 'install 'wrap-bin
  137. (lambda* (#:key outputs inputs #:allow-other-keys)
  138. (let ((out (assoc-ref outputs "out")))
  139. (wrap-program (string-append out "/bin/keepassxc")
  140. `("QT_PLUGIN_PATH" ":" prefix
  141. ,(map (lambda (label)
  142. (string-append (assoc-ref inputs label)
  143. "/lib/qt5/plugins"))
  144. '("qtbase" "qtsvg")))))
  145. #t)))))
  146. (native-inputs
  147. `(("asciidoctor" ,ruby-asciidoctor)
  148. ("qttools" ,qttools)))
  149. (inputs
  150. `(("argon2" ,argon2)
  151. ("libgcrypt" ,libgcrypt)
  152. ("libsodium" ,libsodium) ; XC_BROWSER
  153. ("libyubikey" ,libyubikey) ; XC_YUBIKEY
  154. ("libxi" ,libxi)
  155. ("libxtst" ,libxtst)
  156. ("qrencode" ,qrencode)
  157. ("qtbase" ,qtbase)
  158. ("qtsvg" ,qtsvg)
  159. ("qtx11extras" ,qtx11extras)
  160. ("quazip" ,quazip) ; XC_KEESHARE
  161. ("readline" ,readline)
  162. ("yubikey-personalization" ,yubikey-personalization) ; XC_YUBIKEY
  163. ("zlib" ,zlib)))
  164. (home-page "https://www.keepassxc.org")
  165. (synopsis "Password manager")
  166. (description "KeePassXC is a password manager or safe which helps you to
  167. manage your passwords in a secure way. You can put all your passwords in one
  168. database, which is locked with one master key or a key-file which can be stored
  169. on an external storage device. The databases are encrypted using the
  170. algorithms AES or Twofish.")
  171. ;; While various parts of the software are licensed under different licenses,
  172. ;; the combined work falls under the GPLv3.
  173. (license license:gpl3)))
  174. (define-public keepassx
  175. (package
  176. (name "keepassx")
  177. (version "2.0.3")
  178. (source
  179. (origin
  180. (method url-fetch)
  181. (uri (string-append "https://www.keepassx.org/releases/" version
  182. "/keepassx-" version ".tar.gz"))
  183. (sha256
  184. (base32
  185. "1ia7cqx9ias38mnffsl7da7g1f66bcbjsi23k49sln0c6spb9zr3"))))
  186. (build-system cmake-build-system)
  187. (inputs
  188. `(("libgcrypt" ,libgcrypt)
  189. ("libxi" ,libxi)
  190. ("libxtst" ,libxtst)
  191. ("qt" ,qt-4)))
  192. (native-inputs
  193. `(("zlib" ,zlib)))
  194. (home-page "https://www.keepassx.org")
  195. (synopsis "Password manager")
  196. (description "KeePassX is a password manager or safe which helps you to
  197. manage your passwords in a secure way. You can put all your passwords in one
  198. database, which is locked with one master key or a key-file which can be stored
  199. on an external storage device. The databases are encrypted using the
  200. algorithms AES or Twofish.")
  201. ;; Non functional parts use various licences.
  202. (license license:gpl3)
  203. (properties `((superseded . ,keepassxc)))))
  204. (define-public pwsafe
  205. (package
  206. (name "pwsafe")
  207. (version "3.52.0")
  208. (home-page "https://www.pwsafe.org/")
  209. (source
  210. (origin
  211. (method git-fetch)
  212. (uri (git-reference
  213. (url "https://github.com/pwsafe/pwsafe")
  214. (commit version)))
  215. (sha256
  216. (base32 "1ka7xsl63v0559fzf3pwc1iqr37gwr4vq5iaxa2hzar2g28hsxvh"))
  217. (file-name (git-file-name name version))))
  218. (build-system cmake-build-system)
  219. (native-inputs
  220. `(("gettext" ,gettext-minimal)
  221. ("gtest" ,googletest)
  222. ("perl" ,perl)
  223. ("zip" ,zip)))
  224. (inputs `(("curl" ,curl)
  225. ("file" ,file)
  226. ("libuuid" ,util-linux "lib")
  227. ("libxt" ,libxt)
  228. ("libxtst" ,libxtst)
  229. ("openssl" ,openssl)
  230. ("qrencode" ,qrencode)
  231. ("wxwidgets" ,wxwidgets)
  232. ("xerces-c" ,xerces-c)))
  233. (arguments '(#:configure-flags (list "-DNO_GTEST=YES")
  234. #:phases (modify-phases %standard-phases
  235. (add-after 'unpack 'add-gtest
  236. (lambda* (#:key inputs #:allow-other-keys)
  237. (chmod "CMakeLists.txt" #o644)
  238. (let ((cmake-port (open-file "CMakeLists.txt"
  239. "a")))
  240. (display "find_package(GTest)
  241. add_subdirectory(src/test)\n" cmake-port)
  242. (close cmake-port)
  243. #t))))))
  244. (synopsis "Password safe with automatic input and key generation")
  245. (description "pwsafe is a password manager originally designed by Bruce
  246. Schneier. It offers a simple UI to manage passwords for different services.
  247. There are other programs that support the file format on different
  248. platforms.")
  249. (license license:artistic2.0)))
  250. (define-public shroud
  251. (package
  252. (name "shroud")
  253. (version "0.1.2")
  254. (source (origin
  255. (method url-fetch)
  256. (uri (string-append "https://files.dthompson.us/shroud/shroud-"
  257. version ".tar.gz"))
  258. (sha256
  259. (base32
  260. "1l2shrhvcwfzkar9qiwb75nhcqmx25iz55lzmz0c187nbjhqzi9p"))))
  261. (build-system gnu-build-system)
  262. (native-inputs
  263. `(("pkg-config" ,pkg-config)))
  264. (arguments
  265. `(#:modules ((guix build gnu-build-system)
  266. (guix build utils)
  267. (ice-9 popen)
  268. (ice-9 rdelim))
  269. #:phases
  270. (modify-phases %standard-phases
  271. (add-after 'install 'wrap-shroud
  272. (lambda* (#:key inputs outputs #:allow-other-keys)
  273. (let* ((out (assoc-ref outputs "out"))
  274. (guile (assoc-ref inputs "guile"))
  275. (effective (read-line
  276. (open-pipe* OPEN_READ
  277. (string-append guile "/bin/guile")
  278. "-c" "(display (effective-version))")))
  279. (ccachedir (string-append out
  280. "/lib/guile/" effective "/site-ccache"))
  281. (prog (string-append out "/bin/shroud")))
  282. (wrap-program prog
  283. `("GUILE_LOAD_COMPILED_PATH" ":" prefix (,ccachedir)))
  284. #t))))))
  285. (inputs
  286. `(("guile" ,guile-2.2)
  287. ("gnupg" ,gnupg)
  288. ("xclip" ,xclip)))
  289. (synopsis "GnuPG-based secret manager")
  290. (description "Shroud is a simple secret manager with a command line
  291. interface. The password database is stored as a Scheme s-expression and
  292. encrypted with a GnuPG key. Secrets consist of an arbitrary number of
  293. key/value pairs, making Shroud suitable for more than just password storage.
  294. For copying and pasting secrets into web browsers and other graphical
  295. applications, there is xclip integration." )
  296. (home-page "https://dthompson.us/projects/shroud.html")
  297. (license license:gpl3+)))
  298. (define-public yapet
  299. (package
  300. (name "yapet")
  301. (version "2.3")
  302. (source
  303. (origin
  304. (method url-fetch)
  305. (uri (string-append "https://yapet.guengel.ch/downloads/yapet-"
  306. version ".tar.xz"))
  307. (sha256
  308. (base32 "1fl4s7v1psl52ndd6i7716i9f493aj8ipl6lgmraadnn5h26l3pm"))))
  309. (build-system gnu-build-system)
  310. (inputs
  311. `(("argon2" ,argon2)
  312. ("ncurses" ,ncurses)
  313. ("openssl" ,openssl)))
  314. (native-inputs
  315. `(("cppunit" ,cppunit)
  316. ("pkg-config" ,pkg-config)))
  317. (synopsis "Yet Another Password Encryption Tool")
  318. (description "YAPET is a text based password manager using the Blowfish
  319. encryption algorithm. Because of its small footprint and very few library
  320. dependencies, it is suited for installing on desktop and server systems alike.
  321. The text based user interface allows you to run YAPET easily in a Secure Shell
  322. session. Two companion utilities enable users to convert CSV files to YAPET
  323. and vice versa.")
  324. (home-page "https://yapet.guengel.ch/")
  325. (license license:gpl3+)))
  326. (define-public cracklib
  327. (package
  328. (name "cracklib")
  329. (version "2.9.7")
  330. (source
  331. (origin
  332. (method url-fetch)
  333. (uri (string-append "https://github.com/cracklib/cracklib/"
  334. "releases/download/v" version "/"
  335. "cracklib-" version ".tar.bz2"))
  336. (sha256
  337. (base32 "1rimpjsdnmw8f5b7k558cic41p2qy2n2yrlqp5vh7mp4162hk0py"))))
  338. (build-system gnu-build-system)
  339. (arguments
  340. `(#:phases
  341. (modify-phases %standard-phases
  342. (add-after 'install 'install-dict
  343. (lambda* (#:key make-flags #:allow-other-keys)
  344. (begin
  345. (chmod (string-append "util/cracklib-format") #o755)
  346. (apply invoke "make" "dict" make-flags)
  347. #t))))))
  348. (synopsis "Password checking library")
  349. (home-page "https://github.com/cracklib/cracklib")
  350. (description
  351. "CrackLib is a library containing a C function which may be used in a
  352. @command{passwd}-like program. The idea is simple: try to prevent users from
  353. choosing passwords that could easily be guessed (or \"cracked\") by filtering
  354. them out, at the source.")
  355. (license license:lgpl2.1)))
  356. (define-public libpwquality
  357. (package
  358. (name "libpwquality")
  359. (version "1.4.2")
  360. (source (origin
  361. (method url-fetch)
  362. (uri (list
  363. (string-append "https://github.com/libpwquality/libpwquality"
  364. "/releases/download/libpwquality-" version
  365. "/libpwquality-" version ".tar.bz2")
  366. (string-append "https://launchpad.net/libpwquality/trunk/"
  367. version "/+download/"
  368. "libpwquality-" version ".tar.bz2")))
  369. (sha256
  370. (base32
  371. "13hw532fmzc5xjpy75d74rlfdlxf2a8ibb4hyy9c0s92wsgf0qsj"))))
  372. (build-system gnu-build-system)
  373. (arguments
  374. ;; XXX: have RUNPATH issue.
  375. '(#:configure-flags '("--disable-python-bindings")))
  376. (inputs
  377. `(("cracklib" ,cracklib)))
  378. (synopsis "Password quality checker")
  379. (home-page "https://github.com/libpwquality/libpwquality")
  380. (description
  381. "Libpwquality is a library for password quality checking and generation of
  382. random passwords that pass the checks.")
  383. (license license:gpl2+)))
  384. (define-public assword
  385. (package
  386. (name "assword")
  387. (version "0.11")
  388. (source (origin
  389. (method url-fetch)
  390. (uri (list
  391. (string-append
  392. "http://http.debian.net/debian/pool/main/a/assword/"
  393. "assword_" version ".orig.tar.gz")))
  394. (sha256
  395. (base32
  396. "03gkb6kvsghznbcw5l7nmrc6mn3ixkjd5jcs96ni4zs9l47jf7yp"))))
  397. (arguments
  398. `(;; irritatingly, tests do run but not there are two problems:
  399. ;; - "import gtk" fails for unknown reasons here despite it the
  400. ;; program working (indeed, I've found I have to do a logout and log
  401. ;; back in in after an install order for some mumbo jumbo environment
  402. ;; variable mess to work with pygtk and assword... what's up with
  403. ;; that?)
  404. ;; - even when the tests fail, they don't return a nonzero status,
  405. ;; so I'm not sure how to programmatically get that information
  406. #:tests? #f
  407. #:phases
  408. (modify-phases %standard-phases
  409. (add-after 'install 'wrap-assword
  410. (lambda* (#:key outputs #:allow-other-keys)
  411. (let ((prog (string-append
  412. (assoc-ref outputs "out")
  413. "/bin/assword"))
  414. (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
  415. (wrap-program prog
  416. `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)))
  417. #t)))
  418. (add-after 'install 'manpage
  419. (lambda* (#:key outputs #:allow-other-keys)
  420. ;; Without this substitution, it fails with
  421. ;; ImportError: No module named 'gpg'
  422. (substitute* "Makefile"
  423. (("PYTHONPATH=.") ""))
  424. (invoke "make" "assword.1")
  425. (install-file
  426. "assword.1"
  427. (string-append (assoc-ref outputs "out") "/share/man/man1")))))))
  428. (build-system python-build-system)
  429. (native-inputs
  430. `(("txt2man" ,txt2man)))
  431. (inputs
  432. `(("gtk+" ,gtk+)
  433. ("python-xdo" ,python-xdo)
  434. ("python-gpg" ,python-gpg)
  435. ("python-pygobject" ,python-pygobject)))
  436. (propagated-inputs
  437. `(("xclip" ,xclip)))
  438. (home-page "https://finestructure.net/assword/")
  439. (synopsis "Password manager")
  440. (description "assword is a simple password manager using GPG-wrapped
  441. JSON files. It has a command line interface as well as a very simple
  442. graphical interface, which can even \"type\" your passwords into
  443. any X11 window.")
  444. (license license:gpl3+)))
  445. (define-public password-store
  446. (package
  447. (name "password-store")
  448. (version "1.7.3")
  449. (source (origin
  450. (method url-fetch)
  451. (uri
  452. (string-append "https://git.zx2c4.com/password-store/snapshot/"
  453. name "-" version ".tar.xz"))
  454. (sha256
  455. (base32
  456. "1x53k5dn3cdmvy8m4fqdld4hji5n676ksl0ql4armkmsds26av1b"))))
  457. (build-system gnu-build-system)
  458. (arguments
  459. '(#:phases
  460. (modify-phases %standard-phases
  461. (delete 'configure)
  462. (delete 'build)
  463. (add-before 'install 'patch-system-extension-dir
  464. (lambda* (#:key outputs #:allow-other-keys)
  465. (let* ((out (assoc-ref outputs "out"))
  466. (extension-dir (string-append out "/lib/password-store/extensions")))
  467. (substitute* "src/password-store.sh"
  468. (("^SYSTEM_EXTENSION_DIR=.*$")
  469. ;; lead with whitespace to prevent 'make install' from
  470. ;; overwriting it again
  471. (string-append " SYSTEM_EXTENSION_DIR=\""
  472. "${PASSWORD_STORE_SYSTEM_EXTENSION_DIR:-"
  473. extension-dir
  474. "}\"\n"))))
  475. #t))
  476. (add-before 'install 'patch-passmenu-path
  477. (lambda* (#:key inputs #:allow-other-keys)
  478. (substitute* "contrib/dmenu/passmenu"
  479. (("dmenu") (string-append (assoc-ref inputs "dmenu")
  480. "/bin/dmenu"))
  481. (("xdotool") (string-append (assoc-ref inputs "xdotool")
  482. "/bin/xdotool")))
  483. #t))
  484. (add-after 'install 'install-passmenu
  485. (lambda* (#:key outputs #:allow-other-keys)
  486. (let* ((out (assoc-ref outputs "out"))
  487. (bin (string-append out "/bin")))
  488. (install-file "contrib/dmenu/passmenu" bin)
  489. #t)))
  490. (add-after 'install 'wrap-path
  491. (lambda* (#:key inputs outputs #:allow-other-keys)
  492. (let ((out (assoc-ref outputs "out"))
  493. (path (map (lambda (pkg)
  494. (string-append (assoc-ref inputs pkg) "/bin"))
  495. '("coreutils" "getopt" "git" "gnupg" "qrencode"
  496. "sed" "tree" "which" "xclip"))))
  497. (wrap-program (string-append out "/bin/pass")
  498. `("PATH" ":" prefix (,(string-join path ":"))))
  499. #t))))
  500. #:make-flags (list "CC=gcc" (string-append "PREFIX=" %output)
  501. "WITH_ALLCOMP=yes"
  502. (string-append "BASHCOMPDIR="
  503. %output "/etc/bash_completion.d"))
  504. ;; Parallel tests may cause a race condition leading to a
  505. ;; timeout in some circumstances.
  506. #:parallel-tests? #f
  507. #:test-target "test"))
  508. (native-search-paths
  509. (list (search-path-specification
  510. (variable "PASSWORD_STORE_SYSTEM_EXTENSION_DIR")
  511. (separator #f) ;single entry
  512. (files '("lib/password-store/extensions")))))
  513. (inputs
  514. `(("dmenu" ,dmenu)
  515. ("getopt" ,util-linux)
  516. ("git" ,git)
  517. ("gnupg" ,gnupg)
  518. ("qrencode" ,qrencode)
  519. ("sed" ,sed)
  520. ("tree" ,tree)
  521. ("which" ,which)
  522. ("xclip" ,xclip)
  523. ("xdotool" ,xdotool)))
  524. (home-page "https://www.passwordstore.org/")
  525. (synopsis "Encrypted password manager")
  526. (description "Password-store is a password manager which uses GnuPG to
  527. store and retrieve passwords. The tool stores each password in its own
  528. GnuPG-encrypted file, allowing the program to be simple yet secure.
  529. Synchronization is possible using the integrated git support, which commits
  530. changes to your password database to a git repository that can be managed
  531. through the pass command.")
  532. (license license:gpl2+)))
  533. (define-public pass-otp
  534. (package
  535. (name "pass-otp")
  536. (version "1.2.0")
  537. (source
  538. (origin
  539. (method url-fetch)
  540. (uri
  541. (string-append "https://github.com/tadfisher/pass-otp/releases/"
  542. "download/v" version "/pass-otp-" version ".tar.gz"))
  543. (sha256
  544. (base32
  545. "0rrs3iazq80dn0wbl20xkh270428jd8l99m5gd7hl93s4r4sc82p"))))
  546. (build-system gnu-build-system)
  547. (arguments
  548. '(#:make-flags
  549. (let* ((out (assoc-ref %outputs "out"))
  550. (bashcomp (string-append out "/etc/bash_completion.d")))
  551. (list (string-append "PREFIX=" %output)
  552. (string-append "BASHCOMPDIR=" bashcomp)))
  553. #:phases
  554. (modify-phases %standard-phases
  555. (delete 'configure)
  556. (add-after 'build 'patch-oath-path
  557. (lambda* (#:key inputs #:allow-other-keys)
  558. (substitute* "otp.bash"
  559. (("^OATH=.*$")
  560. (string-append
  561. "OATH="
  562. (assoc-ref inputs "oath-toolkit")
  563. "/bin/oathtool\n")))
  564. #t)))
  565. #:test-target "test"))
  566. (inputs
  567. `(("oath-toolkit" ,oath-toolkit)))
  568. (native-inputs
  569. `(("password-store" ,password-store)
  570. ("expect" ,expect)
  571. ("git" ,git)
  572. ("gnupg" ,gnupg)
  573. ("which" ,which)))
  574. (home-page "https://github.com/tadfisher/pass-otp")
  575. (synopsis "Pass extension for managing one-time-password (OTP) tokens")
  576. (description
  577. "Pass OTP is an extension for password-store that allows adding
  578. one-time-password (OTP) secrets, generating OTP codes, and displaying secret
  579. key URIs using the standard otpauth:// scheme.")
  580. (license license:gpl3+)))
  581. (define-public qtpass
  582. (package
  583. (name "qtpass")
  584. (version "1.3.2")
  585. (source
  586. (origin
  587. (method git-fetch)
  588. (uri (git-reference
  589. (url "https://github.com/IJHack/QtPass")
  590. (commit (string-append "v" version))))
  591. (file-name (git-file-name name version))
  592. (sha256
  593. (base32
  594. "0748hjvhjrybi33ci3c8hcr74k9pdrf5jv8npf9hrsrmdyy1kr9x"))))
  595. (build-system gnu-build-system)
  596. (arguments
  597. `(#:modules ((guix build gnu-build-system)
  598. (guix build qt-utils)
  599. (guix build utils))
  600. #:imported-modules (,@%gnu-build-system-modules
  601. (guix build qt-utils))
  602. #:phases
  603. (modify-phases %standard-phases
  604. (replace 'configure
  605. (lambda* (#:key inputs outputs #:allow-other-keys)
  606. (let ((out (assoc-ref outputs "out")))
  607. ;; lupdate/lrelease need to find qmake.
  608. (setenv "QMAKE" "qmake")
  609. ;; qmake needs to find lrelease/lupdate.
  610. (invoke "qmake"
  611. "QMAKE_LRELEASE=lrelease"
  612. "QMAKE_LUPDATE=lupdate"
  613. (string-append "PREFIX=" out)))))
  614. (add-after 'configure 'reset-resource-timestamps
  615. ;; Reset timestamps on localization files for a reproducible build.
  616. (lambda _
  617. (with-directory-excursion "localization"
  618. (for-each (lambda (file)
  619. (let* ((base (basename file ".qm"))
  620. (src (string-append base ".ts"))
  621. (st (stat src)))
  622. (set-file-time file st)))
  623. (find-files "." ".*\\.qm")))
  624. #t))
  625. (add-after 'install 'install-auxilliary
  626. ;; Install man-page, icon and .desktop file.
  627. (lambda* (#:key inputs outputs #:allow-other-keys)
  628. (let* ((out (assoc-ref outputs "out"))
  629. (applications (string-append out "/share/applications"))
  630. (icons (string-append out "/share/icons/hicolor/scalable/apps"))
  631. (man (string-append out "/share/man/man1")))
  632. (install-file "qtpass.desktop" applications)
  633. (install-file "artwork/icon.svg" icons)
  634. (rename-file (string-append icons "/icon.svg")
  635. (string-append icons "/qtpass-icon.svg"))
  636. (install-file "qtpass.1" man)
  637. #t)))
  638. (add-after 'install 'wrap-qt
  639. (lambda* (#:key outputs #:allow-other-keys)
  640. (wrap-qt-program (assoc-ref outputs "out") "qtpass")
  641. #t))
  642. (add-before 'check 'check-setup
  643. ;; Make Qt render "offscreen", required for tests.
  644. (lambda _
  645. (setenv "QT_QPA_PLATFORM" "offscreen")
  646. #t)))))
  647. (native-inputs
  648. `(("qttools" ,qttools)))
  649. (inputs
  650. `(("qtbase" ,qtbase)
  651. ("qtsvg" ,qtsvg)))
  652. (home-page "https://qtpass.org")
  653. (synopsis "GUI for password manager password-store")
  654. (description
  655. "Qt-based graphical user interface for the password manager
  656. password-store also known as pass. Can use either pass or gpg to interact
  657. with password-store files. Features configurable password generation,
  658. templates, clipboard handling, and per folder settings for multi-recipient
  659. encryption.")
  660. (license license:gpl3+)))
  661. (define-public rofi-pass
  662. (package
  663. (name "rofi-pass")
  664. (version "2.0.2")
  665. (source
  666. (origin
  667. (method url-fetch)
  668. (uri
  669. (string-append "https://raw.githubusercontent.com/carnager/rofi-pass/"
  670. version "/rofi-pass"))
  671. (sha256
  672. (base32 "0msldkndqp40nx1s5s7ggcr97ir4nshpmnyzvj5hqw1l7m3gvw6j"))
  673. (file-name name)))
  674. (build-system trivial-build-system)
  675. (arguments
  676. `(#:modules ((guix build utils))
  677. #:builder
  678. (begin
  679. (use-modules (guix build utils))
  680. (let ((source (string-append (assoc-ref %build-inputs "source")))
  681. (script "rofi-pass")
  682. (out (assoc-ref %outputs "out")))
  683. (copy-file source script)
  684. (chmod script #o555)
  685. (install-file script (string-append out "/bin"))))))
  686. (propagated-inputs
  687. `(("password-store" ,password-store)
  688. ("rofi" ,rofi)
  689. ("xdotool" ,xdotool)))
  690. (home-page "https://github.com/carnager/rofi-pass")
  691. (synopsis "Rofi frontend for password-store")
  692. (description "Rofi-pass provides a way to manipulate information stored
  693. using password-store through rofi interface:
  694. @enumerate
  695. @item open URLs of entries with hotkey;
  696. @item type any field from entry;
  697. @item auto-typing of user and/or password fields;
  698. @item auto-typing username based on path;
  699. @item auto-typing of more than one field, using the autotype entry;
  700. @item bookmarks mode (open stored URLs in browser, default: Alt+x).
  701. @end enumerate")
  702. (license license:gpl3)))
  703. (define-public browserpass-native
  704. (package
  705. (name "browserpass-native")
  706. (version "3.0.6")
  707. (source
  708. (origin
  709. (method git-fetch)
  710. (uri (git-reference
  711. (url "https://github.com/browserpass/browserpass-native")
  712. (commit version)))
  713. (file-name (git-file-name name version))
  714. (sha256
  715. (base32
  716. "0q3bsla07zjl6i69nj1axbkg2ia89pvh0jg6nlqgbm2kpzzbn0pz"))))
  717. (build-system go-build-system)
  718. (arguments
  719. `(#:import-path "github.com/browserpass/browserpass-native"
  720. #:install-source? #f
  721. #:phases
  722. (modify-phases %standard-phases
  723. (add-before 'build 'patch-makefile
  724. (lambda* (#:key outputs #:allow-other-keys)
  725. (let ((out (assoc-ref outputs "out")))
  726. ;; This doesn't go in #:make-flags because the Makefile itself
  727. ;; gets installed.
  728. (substitute*
  729. "src/github.com/browserpass/browserpass-native/Makefile"
  730. (("PREFIX \\?= /usr")
  731. (string-append "PREFIX ?= " out)))
  732. #t)))
  733. (add-before 'build 'configure
  734. (lambda _
  735. (with-directory-excursion
  736. "src/github.com/browserpass/browserpass-native"
  737. (invoke "make" "configure"))
  738. #t))
  739. (replace 'build
  740. (lambda _
  741. (with-directory-excursion
  742. "src/github.com/browserpass/browserpass-native"
  743. (invoke "make"))
  744. #t))
  745. (replace 'install
  746. (lambda _
  747. (with-directory-excursion
  748. "src/github.com/browserpass/browserpass-native"
  749. (invoke "make" "install"))
  750. #t))
  751. (add-after 'install 'wrap-executable
  752. (lambda* (#:key inputs outputs #:allow-other-keys)
  753. (let ((out (assoc-ref outputs "out"))
  754. (gnupg (assoc-ref inputs "gnupg")))
  755. (wrap-program (string-append out "/bin/browserpass")
  756. `("PATH" ":" prefix
  757. (,(string-append gnupg "/bin"))))
  758. #t))))))
  759. (native-inputs
  760. `(("which" ,which)))
  761. (inputs
  762. `(("gnupg" ,gnupg)
  763. ("go-github-com-mattn-go-zglob" ,go-github-com-mattn-go-zglob)
  764. ("go-github-com-rifflock-lfshook" ,go-github-com-rifflock-lfshook)
  765. ("go-github-com-sirupsen-logrus" ,go-github-com-sirupsen-logrus)
  766. ("go-golang-org-x-sys" ,go-golang-org-x-sys)))
  767. (home-page "https://github.com/browserpass/browserpass-native")
  768. (synopsis "Browserpass native messaging host")
  769. (description "Browserpass is a browser extension for pass, a
  770. UNIX-based password store manager. It allows you to auto-fill or copy to
  771. clipboard credentials for the current domain, protecting you from phishing
  772. attacks.
  773. This package only contains the Browserpass native messaging host. You must
  774. also install the browser extension for GNU IceCat or ungoogled-chromium
  775. separately.")
  776. (license license:isc)))
  777. (define-public argon2
  778. (package
  779. (name "argon2")
  780. (version "20190702")
  781. (source
  782. (origin
  783. (method git-fetch)
  784. (uri (git-reference
  785. (url "https://github.com/P-H-C/phc-winner-argon2")
  786. (commit version)))
  787. (file-name (git-file-name name version))
  788. (sha256
  789. (base32
  790. "01rwanr4wmr9vm6c712x411wig543q195z2icn388z892a93lc7p"))))
  791. (build-system gnu-build-system)
  792. (arguments
  793. `(#:test-target "test"
  794. #:make-flags (list "CC=gcc"
  795. (string-append "PREFIX=" (assoc-ref %outputs "out"))
  796. "LIBRARY_REL=lib"
  797. (string-append "ARGON2_VERSION=" ,version)
  798. "OPTTEST=1") ; disable CPU optimization
  799. #:phases
  800. (modify-phases %standard-phases
  801. (delete 'configure)))) ; No configure script.
  802. (home-page "https://www.argon2.com/")
  803. (synopsis "Password hashing library")
  804. (description "Argon2 provides a key derivation function that was declared
  805. winner of the 2015 Password Hashing Competition.")
  806. ;; Argon2 is dual licensed under CC0 and ASL 2.0. Some of the source
  807. ;; files are CC0 only; see README.md and LICENSE for details.
  808. (license (list license:cc0 license:asl2.0))))
  809. (define-public pass-git-helper
  810. (package
  811. (name "pass-git-helper")
  812. (version "1.1.0")
  813. (source
  814. (origin
  815. (method git-fetch)
  816. (uri (git-reference
  817. (url "https://github.com/languitar/pass-git-helper")
  818. (commit (string-append "v" version))))
  819. (file-name (git-file-name name version))
  820. (sha256
  821. (base32
  822. "18nvwlp0w4aqj268wly60rnjzqw2d8jl0hbs6bkwp3hpzzz5g6yd"))))
  823. (build-system python-build-system)
  824. (arguments
  825. `(#:phases
  826. (modify-phases %standard-phases
  827. (add-before 'build 'patch-pass-path
  828. (lambda* (#:key inputs #:allow-other-keys)
  829. (let* ((password-store (assoc-ref inputs "password-store"))
  830. (pass (string-append password-store "/bin/pass")))
  831. (substitute* '("passgithelper.py"
  832. "test_passgithelper.py")
  833. (("'pass'") (string-append "'" pass "'")))
  834. #t)))
  835. (replace 'check
  836. (lambda _
  837. (setenv "HOME" (getcwd))
  838. (invoke "pytest"))))))
  839. (inputs
  840. `(("python-pyxdg" ,python-pyxdg)
  841. ("password-store" ,password-store)))
  842. (native-inputs
  843. `(("python-pytest" ,python-pytest)
  844. ("python-pytest-mock" ,python-pytest-mock)))
  845. (home-page "https://github.com/languitar/pass-git-helper")
  846. (synopsis "Git credential helper interfacing with pass")
  847. (description "pass-git-helper is a git credential helper which
  848. uses pass, the standard unix password manager, as the credential backend for
  849. your git repositories. This is achieved by explicitly defining mappings
  850. between hosts and entries in the password store.")
  851. (license license:lgpl3+)))
  852. (define-public john-the-ripper-jumbo
  853. (let ((official-version "1.9.0")
  854. (jumbo-version "1"))
  855. (package
  856. (name "john-the-ripper-jumbo")
  857. (version (string-append official-version "-" jumbo-version))
  858. (source
  859. (origin
  860. (method url-fetch)
  861. (uri (string-append "http://www.openwall.com/john/j/john-"
  862. official-version "-jumbo-" jumbo-version ".tar.xz"))
  863. (sha256
  864. (base32
  865. "0fvz3v41hnaiv1ggpxanfykyfjq79cwp9qcqqn63vic357w27lgm"))))
  866. (build-system gnu-build-system)
  867. (native-inputs
  868. `(("perl" ,perl)))
  869. (inputs
  870. `(("gmp" ,gmp)
  871. ("libpcap" ,libpcap)
  872. ("nss" ,nss)
  873. ("openssl" ,openssl-1.0)
  874. ("python" ,python-2) ; For "python" and "python2" shebangs
  875. ("ruby" ,ruby) ; For genincstats.rb
  876. ("zlib" ,zlib)))
  877. (arguments
  878. `(#:configure-flags
  879. (list "--with-systemwide"
  880. ;; Do not test for instruction set in configure, and do not
  881. ;; pass '-march=native' to gcc:
  882. "--disable-native-tests"
  883. "--disable-native-march"
  884. ,(string-append
  885. "--enable-simd="
  886. (let ((system (or (%current-target-system)
  887. (%current-system))))
  888. (cond
  889. ((or (string-prefix? "x86_64" system)
  890. (string-prefix? "i686" system)) "sse2")
  891. ((string-prefix? "aarch" system) "neon")
  892. (else "no")))))
  893. #:phases
  894. (modify-phases %standard-phases
  895. (add-before 'configure 'chdir-src
  896. (lambda _ (chdir "src") #t))
  897. (replace 'install
  898. (lambda _
  899. (let ((bindir (string-append %output "/bin"))
  900. (docdir (string-append %output "/share/doc/john"))
  901. (execdir (string-append %output "/libexec/john"))
  902. (datadir (string-append %output "/share/john"))
  903. (install-file-to (lambda (dir)
  904. (lambda (f) (install-file f dir))))
  905. (symlink? (lambda (_ s) (eq? (stat:type s) 'symlink))))
  906. (with-directory-excursion "../run"
  907. (for-each (install-file-to bindir)
  908. (cons*
  909. "john" "makechr" "cprepair" "SIPdump" "tgtsnarf"
  910. "genmkvpwd" "mkvcalcproba" "calc_stat" "raw2dyna"
  911. (find-files "." "(to|2)?john(-[^.]*)?$")))
  912. (for-each (lambda (f) ; Install symlinked aliases
  913. (let ((tgt (string-append bindir "/" (basename f))))
  914. ;; The use of install-file above dereferences
  915. ;; symlinks. We'd rather have the symlinks
  916. ;; for clarity, so remove tgt before linking.
  917. (when (file-exists? tgt) (delete-file tgt))
  918. (symlink "john" tgt)))
  919. (find-files "." symlink?))
  920. (for-each (install-file-to execdir)
  921. (cons* "mailer" "benchmark-unify" "relbench"
  922. (find-files "." ".*\\.js")))
  923. (for-each (lambda (f)
  924. (let* ((base (basename f))
  925. (name (substring base 0 (string-index base #\.)))
  926. (link (string-append bindir "/" name)))
  927. (install-file f execdir)
  928. (when (and (executable-file? f)
  929. (not (file-exists? link)))
  930. (symlink (string-append execdir "/" base) link))))
  931. (find-files "." ".*\\.(pl|py|rb|lua)"))
  932. (for-each (install-file-to datadir)
  933. (append (find-files "." "(stats|dictionary.*)")
  934. (find-files "." "(.*\\.chr|.*\\.lst)")
  935. (find-files "." ".*\\.conf")))
  936. (copy-recursively "rules" (string-append datadir "/rules")))
  937. (copy-recursively "../doc" docdir)
  938. #t)))
  939. (delete 'check) ; Tests need installed .conf files; move after install
  940. (add-after 'install 'check
  941. (lambda args
  942. (setenv "HOME" "/tmp") ; Some tests need to write to ~/.john
  943. (setenv "OMP_NUM_THREADS" (number->string (parallel-job-count)))
  944. (apply (assoc-ref %standard-phases 'check) args))))))
  945. (home-page "http://www.openwall.com/john/")
  946. (synopsis "Password cracker")
  947. (description "John the Ripper is a fast password cracker. Its primary
  948. purpose is to detect weak Unix passwords. Besides several @code{crypt}
  949. password hash types most commonly found on various Unix systems, supported out
  950. of the box are Windows LM hashes, plus lots of other hashes and ciphers. This
  951. is the community-enhanced, \"jumbo\" version of John the Ripper.")
  952. (license license:gpl2+))))
  953. (define-public sala
  954. (package
  955. (name "sala")
  956. (version "1.3")
  957. (source
  958. (origin
  959. (method url-fetch)
  960. (uri (pypi-uri "sala" version))
  961. (sha256
  962. (base32
  963. "13qgmc3i2a0cqp8jqrfl93lnphfagb32pgfikc1gza2a14asxzi8"))))
  964. (build-system python-build-system)
  965. (arguments
  966. ;; Sala is supposed to work with Python 3.2 or higher,
  967. ;; but it doesn't work with Python 3.6. Better stick
  968. ;; to Python 2, which works fine.
  969. `(#:python ,python-2))
  970. (propagated-inputs
  971. `(("gnupg" ,gnupg)
  972. ("pwgen" ,pwgen)))
  973. (home-page "http://www.digip.org/sala/")
  974. (synopsis "Encrypted plaintext password store")
  975. (description
  976. "Store passwords and other bits of sensitive plain-text information
  977. to encrypted files on a directory hierarchy. The information is protected
  978. by GnuPG's symmetrical encryption.")
  979. (license license:expat)))
  980. (define-public fpm2
  981. (package
  982. (name "fpm2")
  983. (version "0.79")
  984. (source (origin
  985. (method url-fetch)
  986. (uri (string-append "https://als.regnet.cz/fpm2/download/fpm2-"
  987. version ".tar.bz2"))
  988. (sha256
  989. (base32
  990. "19sdy1lygfhkg5nxi2w9a4d9kwvw24nxp0ix0p0lz91qpvk9qpnm"))))
  991. (build-system gnu-build-system)
  992. (inputs `(("gtk2" ,gtk+-2)
  993. ("gnupg" ,gnupg)
  994. ("libxml2" ,libxml2)))
  995. (native-inputs `(("pkg-config" ,pkg-config)
  996. ("intltool" ,intltool)))
  997. (arguments
  998. `(#:phases
  999. (modify-phases %standard-phases
  1000. (add-before 'configure 'pre-configure
  1001. ;; The file po/POTFILES.in ends up missing for some reason in
  1002. ;; both nix and guix builds. Adding the file with contents
  1003. ;; found during troubleshooting.
  1004. (lambda _
  1005. (call-with-output-file "po/POTFILES.in"
  1006. (lambda (port)
  1007. (format port "data/fpm2.desktop.in
  1008. data/fpm2.desktop.in.in
  1009. fpm2.glade
  1010. src/callbacks.c
  1011. src/fpm.c
  1012. src/fpm_file.c
  1013. src/interface.c
  1014. src/support.c
  1015. fpm2.glade
  1016. ")))
  1017. #t)))))
  1018. (synopsis "Manage, generate and store passwords encrypted")
  1019. (description "FPM2 is GTK2 port from Figaro's Password Manager
  1020. originally developed by John Conneely, with some new enhancements.
  1021. Upstream development seems to have stopped. It is therefore recommended
  1022. to use a different password manager.")
  1023. (home-page "https://als.regnet.cz/fpm2/")
  1024. (license license:gpl2+)))
  1025. (define-public pass-rotate
  1026. (package
  1027. (name "pass-rotate")
  1028. (version "0.1")
  1029. (source
  1030. (origin
  1031. (method git-fetch)
  1032. (uri (git-reference
  1033. (url "https://github.com/ddevault/pass-rotate")
  1034. (commit version)))
  1035. (file-name (git-file-name name version))
  1036. (sha256
  1037. (base32
  1038. "1m067vvdlc85csbpkp8aw4s3ags7q8s3jszrr32kmj9qhk5c254f"))))
  1039. (build-system python-build-system)
  1040. (inputs
  1041. `(("python-beautifulsoup4" ,python-beautifulsoup4)
  1042. ("python-docopt" ,python-docopt)
  1043. ("python-html5lib" ,python-html5lib)
  1044. ("python-requests" ,python-requests)))
  1045. (home-page "https://github.com/ddevault/pass-rotate")
  1046. (synopsis "Rotate password on online services")
  1047. (description "pass-rotate is a command line utility and python library for
  1048. rotating passwords on various web services. It makes it easier to rotate your
  1049. passwords, one at a time or in bulk, when security events or routine upkeep of
  1050. your online accounts makes it necessary.")
  1051. (license license:expat)))
  1052. (define-public hashcat
  1053. (package
  1054. (name "hashcat")
  1055. (version "5.1.0")
  1056. (source
  1057. (origin
  1058. (method url-fetch)
  1059. (uri (string-append "https://hashcat.net/files/hashcat-"
  1060. version ".tar.gz"))
  1061. (sha256
  1062. (base32
  1063. "0f73y4cg8c7a6q7x34qvpfi4g3lw6j9bnn0a13g43aqyiskflfr8"))))
  1064. (native-inputs
  1065. `(("opencl-headers" ,opencl-headers)))
  1066. (build-system gnu-build-system)
  1067. (arguments
  1068. '(#:tests? #f ;no tests
  1069. #:make-flags (list (string-append "PREFIX=" %output))
  1070. #:phases
  1071. (modify-phases %standard-phases
  1072. (delete 'configure))))
  1073. (home-page "https://hashcat.net/hashcat/")
  1074. (synopsis "Advanced password recovery utility")
  1075. (description "Hashcat is an password recovery utility, supporting five
  1076. unique modes of attack for over 200 highly-optimized hashing algorithms.
  1077. Hashcat currently supports CPUs, GPUs, and other hardware accelerators on
  1078. Linux, Windows, and macOS, and has facilities to help enable distributed
  1079. password cracking.")
  1080. (license license:expat)))
  1081. (define-public hashcat-utils
  1082. (package
  1083. (name "hashcat-utils")
  1084. (version "1.9")
  1085. (source
  1086. (origin
  1087. (method url-fetch)
  1088. (uri (string-append "https://github.com/hashcat/hashcat-utils/releases/"
  1089. "download/v" version "/"
  1090. "hashcat-utils-" version ".7z"))
  1091. (sha256
  1092. (base32 "0kq555kb338691qd7zjmi8vhq4km3apnsl2w63zh0igwzcjx6lx1"))))
  1093. (native-inputs
  1094. `(("p7zip" ,p7zip)))
  1095. (inputs
  1096. `(("perl" ,perl)))
  1097. (build-system gnu-build-system)
  1098. (arguments
  1099. `(#:tests? #f ;no tests
  1100. #:make-flags (list "CC=gcc"
  1101. ;; Upstream bug(?): "make all" seems to remove the
  1102. ;; Perl scripts from the source.
  1103. "native")
  1104. #:phases
  1105. (modify-phases %standard-phases
  1106. (replace 'unpack
  1107. (lambda* (#:key source #:allow-other-keys)
  1108. (invoke "7z" "x" source)
  1109. (chdir (string-append "hashcat-utils-" ,version "/src"))
  1110. #t))
  1111. (delete 'configure)
  1112. (replace 'install
  1113. (lambda* (#:key outputs #:allow-other-keys)
  1114. (let ((out (string-append (assoc-ref outputs "out") "/bin")))
  1115. (mkdir-p out)
  1116. (for-each
  1117. (lambda (file)
  1118. (copy-file file (string-append out "/"
  1119. (basename file ".bin"))))
  1120. (find-files "." "\\.bin$"))
  1121. (for-each
  1122. (lambda (file)
  1123. (copy-file file (string-append out "/"
  1124. (basename file ".pl"))))
  1125. (find-files "../bin" "\\.pl$"))
  1126. #t))))))
  1127. (home-page "https://github.com/hashcat/hashcat-utils/")
  1128. (synopsis "Small utilities that are useful in advanced password cracking")
  1129. (description "Hashcat-utils are a set of small utilities that are useful
  1130. in advanced password cracking. They all are packed into multiple stand-alone
  1131. binaries. All of these utils are designed to execute only one specific
  1132. function. Since they all work with @code{STDIN} and @code{STDOUT} you can
  1133. group them into chains.")
  1134. (license license:expat)))
  1135. (define-public bruteforce-luks
  1136. (package
  1137. (name "bruteforce-luks")
  1138. (version "1.4.0")
  1139. (source
  1140. (origin
  1141. (method url-fetch)
  1142. (uri (string-append "https://github.com/glv2/bruteforce-luks/releases/download/"
  1143. version
  1144. "/bruteforce-luks-"
  1145. version
  1146. ".tar.lz"))
  1147. (sha256
  1148. (base32 "0yawrlbbklhmvwr99wm7li3r0d5kxvpkwf33a12rji7z0ya5p340"))))
  1149. (build-system gnu-build-system)
  1150. (native-inputs
  1151. `(("lzip" ,lzip)))
  1152. (inputs
  1153. `(("cryptsetup" ,cryptsetup)))
  1154. (synopsis "LUKS encrypted volume cracker")
  1155. (description
  1156. "This is a cracker for LUKS encrypted volumes. It can be used either in
  1157. exhaustive mode to try every password given a charset or in dictionary mode to
  1158. try every password contained in a file.")
  1159. (home-page "https://github.com/glv2/bruteforce-luks")
  1160. (license license:gpl3+)))
  1161. (define-public makepasswd
  1162. (let ((commit "3545d57d3a589a392d7eb0df36a5286785345c9e")
  1163. (revision "1"))
  1164. (package
  1165. (name "makepasswd")
  1166. (version (git-version "0.5.4" revision commit))
  1167. (source
  1168. (origin
  1169. (method git-fetch)
  1170. (uri (git-reference
  1171. (url "https://github.com/khorben/makepasswd")
  1172. (commit commit)))
  1173. (file-name (git-file-name name version))
  1174. (sha256
  1175. (base32 "0lspqyyxbk6h28yxnp7pd5aib161vrkzgasam5jpzn35n1jacx2j"))))
  1176. (build-system gnu-build-system)
  1177. (native-inputs
  1178. `(("pkg-config" ,pkg-config)
  1179. ("libxslt" ,libxslt)
  1180. ("libxml2" ,libxml2)
  1181. ("docbook-xsl" ,docbook-xsl)
  1182. ("docbook-xml" ,docbook-xml)))
  1183. (inputs
  1184. `(("openssl" ,openssl)))
  1185. (arguments
  1186. `(#:phases
  1187. (modify-phases %standard-phases
  1188. (delete 'configure))
  1189. #:make-flags (list "CC=gcc"
  1190. (string-append "PREFIX=" (assoc-ref %outputs "out")))
  1191. #:tests? #f)) ;no tests
  1192. (synopsis "Generate (pseudo-)random passwords and hashes")
  1193. (description
  1194. "Makepasswd is a program that generates pseudo-random passwords of a
  1195. desired length. It can also generate their corresponding hashes for a given
  1196. encryption algorithm if so desired.")
  1197. (home-page "https://github.com/khorben/makepasswd")
  1198. (license license:gpl3))))
  1199. (define-public pass-tomb
  1200. (package
  1201. (name "pass-tomb")
  1202. (version "1.2")
  1203. (source
  1204. (origin
  1205. (method git-fetch)
  1206. (uri (git-reference
  1207. (url "https://github.com/roddhjav/pass-tomb")
  1208. (commit (string-append "v" version))))
  1209. (file-name (git-file-name name version))
  1210. (sha256
  1211. (base32 "1qj7vx7svk1ljwihj3kv310k17mafnf919n30n4qn1yxmmsvj924"))))
  1212. (build-system gnu-build-system)
  1213. (arguments
  1214. `(#:make-flags
  1215. (let ((out (assoc-ref %outputs "out")))
  1216. (list (string-append "PREFIX=" out)
  1217. (string-append "BASHCOMPDIR=" out "/etc/bash_completion.d")))
  1218. #:test-target "tests"
  1219. ;; tests are very dependent on system state (swap partition) and require
  1220. ;; access to /tmp/zsh which is not in the build container.
  1221. #:tests? #f
  1222. #:phases
  1223. (modify-phases %standard-phases
  1224. (add-after 'unpack 'set-tomb-path
  1225. (lambda* (#:key inputs #:allow-other-keys)
  1226. (let ((tomb (assoc-ref inputs "tomb")))
  1227. (substitute* "tomb.bash"
  1228. ((":-tomb")
  1229. (string-append ":-" tomb "/bin/tomb"))))))
  1230. (delete 'configure))))
  1231. (inputs
  1232. `(("tomb" ,tomb)))
  1233. (home-page "https://github.com/roddhjav/pass-tomb")
  1234. (synopsis "Pass extension keeping the tree of passwords encrypted")
  1235. (description "Pass-tomb provides a convenient solution to put your
  1236. password store in a Tomb and then keep your password tree encrypted when you
  1237. are not using it. It uses the same GPG key to encrypt passwords and tomb,
  1238. therefore you don't need to manage more key or secret. Moreover, you can ask
  1239. pass-tomb to automatically close your store after a given time.")
  1240. (license license:gpl3+)))