2013-02-15 05:46:29 -05:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2014-06-03 16:12:05 -04:00
|
|
|
;;; Copyright © 2012, 2013 Nikita Karetnikov <nikita@karetnikov.org>
|
2015-11-20 19:07:03 -05:00
|
|
|
;;; Copyright © 2015 Mathieu Lirzin <mthl@gnu.org>
|
2015-05-07 00:53:48 -04:00
|
|
|
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
|
2019-02-12 09:03:05 -05:00
|
|
|
;;; Copyright © 2016, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
|
2016-03-21 09:22:31 -04:00
|
|
|
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
|
2016-06-16 17:58:45 -04:00
|
|
|
;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
|
2016-08-21 17:39:19 -04:00
|
|
|
;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
|
2017-02-06 06:54:57 -05:00
|
|
|
;;; Copyright © 2016, 2017 Marius Bakke <mbakke@fastmail.com>
|
2017-05-07 14:45:39 -04:00
|
|
|
;;; Copyright © 2017 Hartmut Goebel <h.goebel@crazy-compilers.com>
|
2017-09-14 14:55:01 -04:00
|
|
|
;;; Copyright © 2017 Stefan Reichör <stefan@xsteve.at>
|
2018-03-28 15:25:05 -04:00
|
|
|
;;; Copyright © 2018 Vasile Dumitrascu <va511e@yahoo.com>
|
2018-04-24 19:44:38 -04:00
|
|
|
;;; Copyright © 2018 Eric Bavier <bavier@member.fsf.org>
|
2018-06-04 10:31:58 -04:00
|
|
|
;;; Copyright © 2018 Rutger Helling <rhelling@mykolab.com>
|
2019-01-07 08:28:46 -05:00
|
|
|
;;; Copyright © 2018, 2019 Pierre Neidhardt <mail@ambrevar.xyz>
|
2013-02-15 05:46:29 -05:00
|
|
|
;;;
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2014-06-03 16:12:05 -04:00
|
|
|
(define-module (gnu packages disk)
|
2016-06-16 17:58:45 -04:00
|
|
|
#:use-module (gnu packages)
|
2018-10-10 16:10:52 -04:00
|
|
|
#:use-module (gnu packages autotools)
|
2016-08-21 17:39:19 -04:00
|
|
|
#:use-module (gnu packages base)
|
2018-10-10 16:10:52 -04:00
|
|
|
#:use-module (gnu packages bash)
|
|
|
|
#:use-module (gnu packages c)
|
2018-04-24 19:44:38 -04:00
|
|
|
#:use-module (gnu packages check)
|
2018-10-10 16:10:52 -04:00
|
|
|
#:use-module (gnu packages compression)
|
2019-02-14 22:54:53 -05:00
|
|
|
#:use-module (gnu packages crypto)
|
2018-10-10 16:10:52 -04:00
|
|
|
#:use-module (gnu packages cryptsetup)
|
2016-08-21 17:39:19 -04:00
|
|
|
#:use-module (gnu packages docbook)
|
2018-10-10 16:10:52 -04:00
|
|
|
#:use-module (gnu packages documentation)
|
2019-01-07 08:28:46 -05:00
|
|
|
#:use-module (gnu packages elf)
|
gnu: gettext: Rename binding to 'gnu-gettext'.
* gnu/packages/gettext.scm (gettext): Rename to...
(gnu-gettext): ... this. This is used to work around the circular
dependency introduced in commit c42a4b7, which users with a #:renamer
cannot cope with.
* gnu/packages/acl.scm, gnu/packages/attr.scm, gnu/packages/cdrom.scm,
gnu/packages/fdisk.scm, gnu/packages/gkrellm.scm, gnu/packages/glib.scm,
gnu/packages/gnunet.scm, gnu/packages/grub.scm, gnu/packages/linux.scm,
gnu/packages/maths.scm, gnu/packages/nano.scm, gnu/packages/parted.scm,
gnu/packages/system.scm, gnu/packages/version-control.scm,
gnu/packages/vpn.scm, gnu/packages/w3m.scm, gnu/packages/wget.scm:
Adjust accordingly.
2013-11-20 16:12:49 -05:00
|
|
|
#:use-module (gnu packages gettext)
|
2016-08-21 17:39:19 -04:00
|
|
|
#:use-module (gnu packages glib)
|
|
|
|
#:use-module (gnu packages gnome)
|
2018-10-10 16:10:52 -04:00
|
|
|
#:use-module (gnu packages gnupg)
|
|
|
|
#:use-module (gnu packages gtk)
|
|
|
|
#:use-module (gnu packages guile)
|
2013-02-15 05:46:29 -05:00
|
|
|
#:use-module (gnu packages linux)
|
2016-06-16 17:58:45 -04:00
|
|
|
#:use-module (gnu packages ncurses)
|
gnu: Move nss & co. to nss.scm.
* gnu/packages/gnuzilla.scm (nspr, nss): Move to...
* gnu/packages/nss.scm: ... here. New file.
* gnu/packages/chromium.scm, gnu/packages/disk.scm,
gnu/packages/freedesktop.scm, gnu/packages/gnome.scm,
gnu/packages/gnunet.scm, gnu/packages/java.scm,
gnu/packages/libreoffice.scm, gnu/packages/linux.scm,
gnu/packages/mate.scm, gnu/packages/openldap.scm,
gnu/packages/package-management.scm, gnu/packages/password-utils.scm,
gnu/packages/polkit.scm, gnu/packages/qt.scm,
gnu/packages/sssd.scm, gnu/packages/storage.scm,
gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/xml.scm: Adjust
accordingly.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add nss.scm.
2019-04-04 09:14:57 -04:00
|
|
|
#:use-module (gnu packages nss)
|
2015-11-20 19:07:03 -05:00
|
|
|
#:use-module (gnu packages perl)
|
2016-08-21 17:39:19 -04:00
|
|
|
#:use-module (gnu packages pkg-config)
|
2016-06-16 17:58:45 -04:00
|
|
|
#:use-module (gnu packages popt)
|
2015-11-20 19:07:03 -05:00
|
|
|
#:use-module (gnu packages python)
|
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.
2019-01-15 08:21:30 -05:00
|
|
|
#:use-module (gnu packages python-xyz)
|
2014-06-03 16:12:05 -04:00
|
|
|
#:use-module (gnu packages readline)
|
gnu: Move Sphinx and friends to (gnu packages sphinx).
* gnu/packages/python-xyz.scm (python-sphinxcontrib-websupport,
python2-sphinxcontrib-websupport, python-sphinx, python2-sphinx,
python-sphinx-gallery, python2-sphinx-gallery, python-sphinx-rtd-theme,
python2-sphinx-rtd-theme, python-guzzle-sphinx-theme,
python2-guzzle-sphinx-theme, python-sphinxcontrib-newsfeed,
python-sphinxcontrib-programoutput, python2-sphinxcontrib-programoutput,
python-sphinx-repoze-interface, python2-sphinx-repoze-interface,
python-sphinx-cloud-sptheme, python2-sphinx-cloud-sptheme,
python-sphinx-alabaster-theme, python2-sphinx-alabaster-theme,
python-sphinx-me, python-sphinxcontrib-svg2pdfconverter): Move to ...
(gnu):
* gnu/packages/sphinx.scm: ... here. New file.
* gnu/local.mk (GNU_SYSTEM_MODULES): Adjust accordingly.
* gnu/packages/admin.scm, gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm, gnu/packages/cluster.scm,
gnu/packages/databases.scm, gnu/packages/dav.scm, gnu/packages/disk.scm,
gnu/packages/django.scm, gnu/packages/elf.scm, gnu/packages/emacs-xyz.scm,
gnu/packages/emulators.scm, gnu/packages/finance.scm, gnu/packages/image.scm,
gnu/packages/libffi.scm, gnu/packages/mail.scm, gnu/packages/mpd.scm,
gnu/packages/openstack.scm, gnu/packages/pdf.scm, gnu/packages/python-web.scm,
gnu/packages/search.scm, gnu/packages/statistics.scm,
gnu/packages/storage.scm, gnu/packages/sync.scm, gnu/packages/terminals.scm,
gnu/packages/tls.scm, gnu/packages/web.scm: Adjust module imports.
2019-05-12 16:56:54 -04:00
|
|
|
#:use-module (gnu packages sphinx)
|
gnu: Move sqlite to separate module.
* gnu/packages/databases.scm (sqlite, sqlite-3.26.0, sqlite-with-fts5,
sqlite-with-column-metadata): Move variables from here...
* gnu/packages/sqlite.scm: ...to this new module.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
* gnu/packages/apl.scm,
gnu/packages/bittorrent.scm,
gnu/packages/calendar.scm,
gnu/packages/code.scm,
gnu/packages/crypto.scm,
gnu/packages/databases.scm,
gnu/packages/dc.scm,
gnu/packages/disk.scm,
gnu/packages/ebook.scm,
gnu/packages/education.scm,
gnu/packages/emacs.scm,
gnu/packages/emulators.scm,
gnu/packages/file-systems.scm,
gnu/packages/freedesktop.scm,
gnu/packages/ftp.scm,
gnu/packages/games.scm,
gnu/packages/geo.scm,
gnu/packages/gnome.scm,
gnu/packages/gnunet.scm,
gnu/packages/gnupg.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/gps.scm,
gnu/packages/guile.scm,
gnu/packages/ibus.scm,
gnu/packages/kerberos.scm,
gnu/packages/kodi.scm,
gnu/packages/lisp.scm,
gnu/packages/mail.scm,
gnu/packages/messaging.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/nfs.scm,
gnu/packages/ocaml.scm,
gnu/packages/package-management.scm,
gnu/packages/pdf.scm,
gnu/packages/photo.scm,
gnu/packages/php.scm,
gnu/packages/python.scm,
gnu/packages/qt.scm,
gnu/packages/ruby.scm,
gnu/packages/scheme.scm,
gnu/packages/sync.scm,
gnu/packages/syndication.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/web-browsers.scm,
gnu/packages/webkit.scm: Adjust module references.
2019-01-15 15:47:05 -05:00
|
|
|
#:use-module (gnu packages sqlite)
|
2018-10-10 16:10:52 -04:00
|
|
|
#:use-module (gnu packages swig)
|
2017-02-06 06:54:57 -05:00
|
|
|
#:use-module (gnu packages vim)
|
2018-06-04 10:31:58 -04:00
|
|
|
#:use-module (gnu packages w3m)
|
2018-06-28 16:45:08 -04:00
|
|
|
#:use-module (gnu packages web)
|
2018-10-10 16:10:52 -04:00
|
|
|
#:use-module (gnu packages xml)
|
|
|
|
#:use-module (guix build-system gnu)
|
|
|
|
#:use-module (guix build-system python)
|
|
|
|
#:use-module (guix build-system trivial)
|
2019-01-07 08:28:46 -05:00
|
|
|
#:use-module (guix build-system scons)
|
2018-10-10 16:10:52 -04:00
|
|
|
#:use-module (guix download)
|
|
|
|
#:use-module (guix git-download)
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
#:use-module (guix packages))
|
2013-02-15 05:46:29 -05:00
|
|
|
|
|
|
|
(define-public parted
|
|
|
|
(package
|
|
|
|
(name "parted")
|
2015-11-20 19:07:03 -05:00
|
|
|
(version "3.2")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://gnu/parted/parted-"
|
|
|
|
version ".tar.xz"))
|
2018-08-26 10:20:04 -04:00
|
|
|
(patches (search-patches "parted-glibc-compat.patch"))
|
2015-11-20 19:07:03 -05:00
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1r3qpg3bhz37mgvp9chsaa3k0csby3vayfvz8ggsqz194af5i2w5"))))
|
2013-02-15 05:46:29 -05:00
|
|
|
(build-system gnu-build-system)
|
2015-11-20 19:07:03 -05:00
|
|
|
(arguments
|
|
|
|
`(#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after
|
|
|
|
'unpack 'fix-locales-and-python
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
(substitute* "tests/t0251-gpt-unicode.sh"
|
|
|
|
(("C.UTF-8") "en_US.utf8")) ;not in Glibc locales
|
|
|
|
(substitute* "tests/msdos-overlap"
|
|
|
|
(("/usr/bin/python") (which "python"))))))))
|
2013-02-15 05:46:29 -05:00
|
|
|
(inputs
|
2015-11-20 19:07:03 -05:00
|
|
|
`(("lvm2" ,lvm2)
|
|
|
|
("readline" ,readline)
|
2013-02-15 05:46:29 -05:00
|
|
|
("util-linux" ,util-linux)))
|
gnu: Move numerous "inputs" which should be "native-inputs".
* gnu/packages/avahi.scm, gnu/packages/cdrom.scm, gnu/packages/cryptsetup.scm,
gnu/packages/curl.scm, gnu/packages/emacs.scm, gnu/packages/fontutils.scm,
gnu/packages/gdb.scm, gnu/packages/geeqie.scm, gnu/packages/ghostscript.scm,
gnu/packages/glib.scm, gnu/packages/gnome.scm, gnu/packages/gnunet.scm,
gnu/packages/gnupg.scm, gnu/packages/gnuzilla.scm, gnu/packages/graphviz.scm,
gnu/packages/groff.scm, gnu/packages/gstreamer.scm, gnu/packages/gtk.scm,
gnu/packages/gv.scm, gnu/packages/imagemagick.scm, gnu/packages/irssi.scm,
gnu/packages/kde.scm, gnu/packages/libcanberra.scm, gnu/packages/libtiff.scm,
gnu/packages/linux.scm, gnu/packages/lvm.scm, gnu/packages/mp3.scm,
gnu/packages/netpbm.scm, gnu/packages/parted.scm, gnu/packages/pdf.scm,
gnu/packages/pulseaudio.scm, gnu/packages/qemu.scm, gnu/packages/qt.scm,
gnu/packages/ratpoison.scm, gnu/packages/rdf.scm, gnu/packages/slim.scm,
gnu/packages/texlive.scm, gnu/packages/version-control.scm,
gnu/packages/video.scm, gnu/packages/vpn.scm, gnu/packages/w3m.scm,
gnu/packages/xml.scm, gnu/packages/xnee.scm, gnu/packages/xorg.scm,
gnu/packages/zip.scm: Move some build-time dependencies from `inputs' to
`native-inputs'.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2013-12-15 06:01:56 -05:00
|
|
|
(native-inputs
|
2016-09-25 03:33:02 -04:00
|
|
|
`(("gettext" ,gettext-minimal)
|
2015-11-20 19:07:03 -05:00
|
|
|
;; For the tests.
|
|
|
|
("perl" ,perl)
|
|
|
|
("python" ,python-2)))
|
|
|
|
(home-page "https://www.gnu.org/software/parted/")
|
gnu: Use synopses from the Womb.
* gnu/packages/algebra.scm,
gnu/packages/aspell.scm,
gnu/packages/autotools.scm,
gnu/packages/base.scm,
gnu/packages/bash.scm,
gnu/packages/bison.scm,
gnu/packages/cdrom.scm,
gnu/packages/cflow.scm,
gnu/packages/compression.scm,
gnu/packages/cpio.scm,
gnu/packages/cppi.scm,
gnu/packages/ddrescue.scm,
gnu/packages/dejagnu.scm,
gnu/packages/ed.scm,
gnu/packages/emacs.scm,
gnu/packages/fdisk.scm,
gnu/packages/gawk.scm,
gnu/packages/gcc.scm,
packages/gcc.scm, b/gnu/packages/gcc.scm,
4b982 100644
s/gcc.scm,
s/gcc.scm,
@@
%standard-phases)))))
`((gcc-libc . ,(assoc-ref inputs "libc"))))
The GNU Compiler Collection")
GNU Compiler Collection")
n
ompiler Collection includes compiler front ends for C, C++,
tran, OpenMP for C/C++/Fortran, Java, and Ada, as well as
gnu/packages/gdb.scm,
gnu/packages/gettext.scm,
gnu/packages/ghostscript.scm,
gnu/packages/glib.scm,
gnu/packages/global.scm,
gnu/packages/gnupg.scm,
gnu/packages/gnutls.scm,
gnu/packages/gperf.scm,
gnu/packages/gprolog.scm,
gnu/packages/groff.scm,
gnu/packages/grub.scm,
gnu/packages/gsasl.scm,
gnu/packages/guile.scm,
gnu/packages/help2man.scm,
gnu/packages/idutils.scm,
gnu/packages/indent.scm,
gnu/packages/less.scm,
gnu/packages/libidn.scm,
gnu/packages/libsigsegv.scm,
gnu/packages/libunistring.scm,
gnu/packages/linux.scm,
gnu/packages/lsh.scm,
gnu/packages/m4.scm,
gnu/packages/mailutils.scm,
gnu/packages/multiprecision.scm,
gnu/packages/nano.scm,
gnu/packages/ncurses.scm,
gnu/packages/nettle.scm,
gnu/packages/oggvorbis.scm,
gnu/packages/parted.scm,
gnu/packages/pth.scm,
gnu/packages/readline.scm,
gnu/packages/recutils.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/shishi.scm,
gnu/packages/smalltalk.scm,
gnu/packages/system.scm,
gnu/packages/texinfo.scm,
gnu/packages/time.scm,
gnu/packages/wdiff.scm,
gnu/packages/wget.scm,
gnu/packages/which.scm: Use synopses from the Womb.
2013-04-17 12:04:25 -04:00
|
|
|
(synopsis "Disk partition editor")
|
2013-02-15 05:46:29 -05:00
|
|
|
(description
|
2013-12-01 16:33:23 -05:00
|
|
|
"GNU Parted is a package for creating and manipulating disk partition
|
|
|
|
tables. It includes a library and command-line utility.")
|
2016-08-21 16:54:29 -04:00
|
|
|
(license license:gpl3+)))
|
2014-06-03 16:12:05 -04:00
|
|
|
|
|
|
|
(define-public fdisk
|
|
|
|
(package
|
|
|
|
(name "fdisk")
|
2017-07-23 12:12:52 -04:00
|
|
|
(version "2.0.0a1")
|
2014-06-03 16:12:05 -04:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://gnu/fdisk/gnufdisk-"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2017-07-23 12:12:52 -04:00
|
|
|
"1d8za79kw8ihnp2br084rgyjv9whkwp7957rzw815i0izx6xhqy9"))))
|
2014-06-03 16:12:05 -04:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(inputs
|
2016-09-25 03:33:02 -04:00
|
|
|
`(("gettext" ,gettext-minimal)
|
2014-06-03 16:12:05 -04:00
|
|
|
("guile" ,guile-1.8)
|
|
|
|
("util-linux" ,util-linux)
|
|
|
|
("parted" ,parted)))
|
2017-07-23 12:12:52 -04:00
|
|
|
;; The build neglects to look for its own headers in its own tree. A next
|
|
|
|
;; release should fix this, but may never come: GNU fdisk looks abandoned.
|
|
|
|
(arguments
|
|
|
|
`(#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'skip-broken-header-probes
|
|
|
|
(lambda _
|
|
|
|
(substitute* "backend/configure"
|
|
|
|
(("gnufdisk-common.h .*") "\n"))
|
|
|
|
#t)))
|
|
|
|
#:make-flags (list (string-append "CPPFLAGS="
|
|
|
|
" -I../common/include "
|
|
|
|
" -I../debug/include "
|
|
|
|
" -I../exception/include"))))
|
2014-06-03 16:12:05 -04:00
|
|
|
(home-page "https://www.gnu.org/software/fdisk/")
|
|
|
|
(synopsis "Low-level disk partitioning and formatting")
|
|
|
|
(description
|
|
|
|
"GNU fdisk provides a GNU version of the common disk partitioning tool
|
|
|
|
fdisk. fdisk is used for the creation and manipulation of disk partition
|
|
|
|
tables, and it understands a variety of different formats.")
|
2016-08-21 16:54:29 -04:00
|
|
|
(license license:gpl3+)))
|
2014-06-03 16:12:05 -04:00
|
|
|
|
2016-06-16 17:58:45 -04:00
|
|
|
(define-public gptfdisk
|
|
|
|
(package
|
|
|
|
(name "gptfdisk")
|
2018-07-06 08:29:00 -04:00
|
|
|
(version "1.0.4")
|
2016-06-16 17:58:45 -04:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://sourceforge/gptfdisk/gptfdisk/"
|
|
|
|
version "/" name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2018-07-06 08:29:00 -04:00
|
|
|
"13d7gff4prl1nsdknjigmb7bbqhn79165n01v4y9mwbnd0d3jqxn"))))
|
2016-06-16 17:58:45 -04:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(inputs
|
2016-09-25 03:33:02 -04:00
|
|
|
`(("gettext" ,gettext-minimal)
|
2016-06-16 17:58:45 -04:00
|
|
|
("ncurses" ,ncurses)
|
|
|
|
("popt" ,popt)
|
|
|
|
("util-linux" ,util-linux))) ; libuuid
|
|
|
|
(arguments
|
|
|
|
`(#:test-target "test"
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
;; no configure script
|
|
|
|
(delete 'configure)
|
|
|
|
;; no install target
|
|
|
|
(replace 'install
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
2017-02-15 13:06:34 -05:00
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(bin (string-append out "/bin"))
|
|
|
|
(man (string-append out "/share/man/man8")))
|
2016-06-16 17:58:45 -04:00
|
|
|
(install-file "gdisk" bin)
|
|
|
|
(install-file "sgdisk" bin)
|
|
|
|
(install-file "cgdisk" bin)
|
2017-02-15 13:06:34 -05:00
|
|
|
(install-file "fixparts" bin)
|
|
|
|
(install-file "cgdisk.8" man)
|
|
|
|
(install-file "fixparts.8" man)
|
|
|
|
(install-file "gdisk.8" man)
|
|
|
|
(install-file "sgdisk.8" man)))))))
|
2016-06-16 17:58:45 -04:00
|
|
|
(home-page "http://www.rodsbooks.com/gdisk/")
|
|
|
|
(synopsis "Low-level GPT disk partitioning and formatting")
|
|
|
|
(description "GPT fdisk (aka gdisk) is a text-mode partitioning tool that
|
2017-07-27 15:10:12 -04:00
|
|
|
works on Globally Unique Identifier (@dfn{GUID}) Partition Table (@dfn{GPT})
|
|
|
|
disks, rather than on the older Master Boot Record (@dfn{MBR}) partition
|
|
|
|
scheme.")
|
2016-08-21 16:54:29 -04:00
|
|
|
(license license:gpl2)))
|
2016-06-16 17:58:45 -04:00
|
|
|
|
2014-06-03 16:12:05 -04:00
|
|
|
(define-public ddrescue
|
|
|
|
(package
|
|
|
|
(name "ddrescue")
|
2019-02-26 10:38:20 -05:00
|
|
|
(version "1.24")
|
2014-06-03 16:12:05 -04:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://gnu/ddrescue/ddrescue-"
|
|
|
|
version ".tar.lz"))
|
|
|
|
(sha256
|
2019-02-26 10:38:20 -05:00
|
|
|
(base32 "11qh0bbzf00mfb4yq35gnv5m260k4d7q9ixklry6bqvhvvp3ypab"))))
|
2014-06-03 16:12:05 -04:00
|
|
|
(build-system gnu-build-system)
|
2017-02-06 05:58:23 -05:00
|
|
|
(home-page "https://www.gnu.org/software/ddrescue/ddrescue.html")
|
2014-06-03 16:12:05 -04:00
|
|
|
(synopsis "Data recovery utility")
|
|
|
|
(native-inputs `(("lzip" ,lzip)))
|
|
|
|
(description
|
|
|
|
"GNU ddrescue is a fully automated data recovery tool. It copies data
|
|
|
|
from one file to another, working to rescue data in case of read errors. The
|
|
|
|
program also includes a tool for manipulating its log files, which are used
|
|
|
|
to recover data more efficiently by only reading the necessary blocks.")
|
2016-08-21 16:54:29 -04:00
|
|
|
(license license:gpl3+)))
|
2015-05-07 00:53:48 -04:00
|
|
|
|
|
|
|
(define-public dosfstools
|
|
|
|
(package
|
|
|
|
(name "dosfstools")
|
2017-02-06 06:54:57 -05:00
|
|
|
(version "4.1")
|
2015-05-07 00:53:48 -04:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://github.com/" name "/" name
|
|
|
|
"/releases/download/v" version "/"
|
|
|
|
name "-" version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2017-02-06 06:54:57 -05:00
|
|
|
"0wy13i3i4x2bw1hf5m4fd0myh61f9bcrs035fdlf6gyc1jksrcp6"))))
|
2015-05-07 00:53:48 -04:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:make-flags (list (string-append "PREFIX=" %output)
|
2017-02-06 06:54:57 -05:00
|
|
|
"CC=gcc")))
|
|
|
|
(native-inputs
|
2017-09-22 06:14:58 -04:00
|
|
|
`(("xxd" ,xxd))) ; for tests
|
2015-05-07 00:53:48 -04:00
|
|
|
(home-page "https://github.com/dosfstools/dosfstools")
|
2016-09-16 02:08:48 -04:00
|
|
|
(synopsis "Utilities for making and checking MS-DOS FAT file systems")
|
2015-05-07 00:53:48 -04:00
|
|
|
(description
|
|
|
|
"The dosfstools package includes the mkfs.fat and fsck.fat utilities,
|
2016-09-16 02:08:48 -04:00
|
|
|
which respectively make and check MS-DOS FAT file systems.")
|
2016-08-21 16:54:29 -04:00
|
|
|
(license license:gpl3+)))
|
2016-02-02 02:04:34 -05:00
|
|
|
|
2016-11-03 05:43:30 -04:00
|
|
|
(define dosfstools/static
|
|
|
|
(static-package
|
|
|
|
(package (inherit dosfstools))))
|
|
|
|
|
|
|
|
(define-public fatfsck/static
|
|
|
|
(package
|
|
|
|
(name "fatfsck-static")
|
|
|
|
(version (package-version dosfstools))
|
|
|
|
(build-system trivial-build-system)
|
|
|
|
(source #f)
|
|
|
|
(arguments
|
|
|
|
`(#:modules ((guix build utils))
|
|
|
|
#:builder
|
|
|
|
(begin
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
(let ((src (string-append (assoc-ref %build-inputs "dosfstools")
|
|
|
|
"/sbin"))
|
|
|
|
(exe "fsck.fat")
|
|
|
|
(bin (string-append (assoc-ref %outputs "out") "/sbin")))
|
|
|
|
(mkdir-p bin)
|
|
|
|
(with-directory-excursion bin
|
|
|
|
(copy-file (string-append src "/" exe) exe)
|
|
|
|
(remove-store-references exe)
|
|
|
|
(chmod exe #o555)
|
|
|
|
;; Add fsck.vfat symlink to match the Linux driver name.
|
|
|
|
(symlink exe "fsck.vfat")
|
|
|
|
#t)))))
|
|
|
|
(inputs `(("dosfstools" ,dosfstools/static)))
|
|
|
|
(home-page (package-home-page dosfstools))
|
|
|
|
(synopsis "Statically linked fsck.fat from dosfstools")
|
|
|
|
(description "This package provides a statically-linked @command{fsck.fat}
|
|
|
|
and a @command{fsck.vfat} compatibility symlink for use in an initrd.")
|
|
|
|
(license (package-license dosfstools))))
|
|
|
|
|
2016-02-02 02:04:34 -05:00
|
|
|
(define-public sdparm
|
|
|
|
(package
|
|
|
|
(name "sdparm")
|
2017-07-23 10:29:14 -04:00
|
|
|
(version "1.10")
|
2016-02-02 02:04:34 -05:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "http://sg.danny.cz/sg/p/"
|
|
|
|
name "-" version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2017-07-23 10:29:14 -04:00
|
|
|
"1jjq3lzgfy4r76rc26q02lv4wm5cb4dx5nh913h489zjrr4f3jbx"))))
|
2016-02-02 02:04:34 -05:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(home-page "http://sg.danny.cz/sg/sdparm.html")
|
|
|
|
(synopsis "Provide access to SCSI device parameters")
|
|
|
|
(description
|
|
|
|
"Sdparm reads and modifies SCSI device parameters. These devices can be
|
|
|
|
SCSI disks, in which case the role of @command{sdparm} is similar to its
|
|
|
|
namesake: the @command{hdparm} utility originally designed for ATA disks.
|
|
|
|
However, @command{sdparm} can be used to access parameters on any device that
|
|
|
|
uses a SCSI command set. Such devices include CD/DVD drives (irrespective of
|
|
|
|
transport), SCSI and ATAPI tape drives, and SCSI enclosures. This utility can
|
|
|
|
also send commands associated with starting and stopping the media, loading
|
|
|
|
and unloading removable media and some other housekeeping functions.")
|
2016-08-21 16:54:29 -04:00
|
|
|
(license license:bsd-3)))
|
2016-03-07 19:47:58 -05:00
|
|
|
|
|
|
|
(define-public idle3-tools
|
|
|
|
(package
|
|
|
|
(name "idle3-tools")
|
|
|
|
(version "0.9.1")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://sourceforge/idle3-tools/idle3-tools-"
|
|
|
|
version ".tgz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"00ia7xq9yldxyl9gz0mr4xa568nav14p0fnv82f2rbbkg060cy4p"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:tests? #f ;no test suite
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(delete 'configure))
|
|
|
|
#:make-flags (list "CC=gcc"
|
|
|
|
(string-append "manprefix=")
|
|
|
|
(string-append "DESTDIR="
|
|
|
|
(assoc-ref %outputs "out")))))
|
|
|
|
(home-page "http://idle3-tools.sourceforge.net")
|
|
|
|
(synopsis "Change or disable Western Digital hard drives' Idle3 timer")
|
|
|
|
(description
|
|
|
|
"Idle3-tools provides a utility to get, set, or disable the Idle3 timer
|
|
|
|
present in many Western Digital hard drives. This timer is part of the
|
|
|
|
\"IntelliPark\" feature that stops the disk when not in use. Unfortunately,
|
|
|
|
the default timer setting is not well suited to Linux or other *nix systems,
|
|
|
|
and can dramatically shorten the lifespan of the drive if left unchecked.")
|
2016-08-21 16:54:29 -04:00
|
|
|
(license license:gpl3+)))
|
2016-08-21 17:39:19 -04:00
|
|
|
|
|
|
|
(define-public gparted
|
|
|
|
(package
|
|
|
|
(name "gparted")
|
2019-02-12 10:07:34 -05:00
|
|
|
(version "0.33.0")
|
2016-08-21 17:39:19 -04:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://sourceforge/gparted/gparted/gparted-"
|
|
|
|
version "/gparted-" version ".tar.gz"))
|
|
|
|
(sha256
|
2019-02-12 10:07:34 -05:00
|
|
|
(base32 "1ml1ky3s75lbxr91p608q3prsdh9x899mw7nbgk252pqhg4vh8sh"))))
|
2016-08-21 17:39:19 -04:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
2018-03-20 14:41:05 -04:00
|
|
|
`(#:tests? #f ; tests require a network connection
|
2016-08-21 17:39:19 -04:00
|
|
|
#:configure-flags '("--disable-scrollkeeper")))
|
|
|
|
(inputs
|
|
|
|
`(("util-linux" ,util-linux)
|
|
|
|
("parted" ,parted)
|
|
|
|
("glib" ,glib)
|
|
|
|
("gtkmm" ,gtkmm-2)
|
|
|
|
("libxml2" ,libxml2)
|
|
|
|
("libxslt" ,libxslt)
|
|
|
|
("gnome-doc-utils" ,gnome-doc-utils)
|
|
|
|
("docbook-xml" ,docbook-xml-4.2)
|
|
|
|
("python" ,python-2)
|
|
|
|
("python-libxml2" ,python2-libxml2)
|
|
|
|
("which" ,which)))
|
|
|
|
(native-inputs
|
|
|
|
`(("intltool" ,intltool)
|
|
|
|
("pkg-config" ,pkg-config)))
|
2017-08-31 09:05:53 -04:00
|
|
|
(home-page "https://gparted.org/")
|
2016-08-21 17:39:19 -04:00
|
|
|
(synopsis "Partition editor to graphically manage disk partitions")
|
|
|
|
(description "GParted is a GNOME partition editor for creating,
|
|
|
|
reorganizing, and deleting disk partitions. It uses libparted from the parted
|
|
|
|
project to detect and manipulate partition tables. Optional file system tools
|
|
|
|
permit managing file systems not included in libparted.")
|
|
|
|
;; The home page says GPLv2, but the source code says GPLv2+.
|
|
|
|
(license license:gpl2+)))
|
2017-05-07 14:45:39 -04:00
|
|
|
|
2017-09-14 14:55:01 -04:00
|
|
|
(define-public pydf
|
|
|
|
(package
|
|
|
|
(name "pydf")
|
|
|
|
(version "12")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "pydf" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0f8ly8xyp93i2hm9c0qjqd4y86nz73axw2f09z01mszwmg1sfivz"))))
|
|
|
|
(build-system python-build-system)
|
|
|
|
(home-page "http://kassiopeia.juls.savba.sk/~garabik/software/pydf/")
|
|
|
|
(synopsis "Colourised @command{df} clone")
|
|
|
|
(description "All-singing, all-dancing, fully colourised @command{df} clone
|
|
|
|
written in Python. It displays the amount of disk space available on the
|
2018-01-19 10:25:13 -05:00
|
|
|
mounted file systems, using different colours for different types of file
|
2017-09-14 14:55:01 -04:00
|
|
|
systems. Output format is completely customizable.")
|
|
|
|
(license license:public-domain)))
|
2017-05-07 14:45:39 -04:00
|
|
|
|
|
|
|
(define-public f3
|
|
|
|
(package
|
|
|
|
(name "f3")
|
2018-08-14 15:42:22 -04:00
|
|
|
(version "7.1")
|
2017-05-07 14:45:39 -04:00
|
|
|
(source
|
|
|
|
(origin
|
2018-08-14 15:26:46 -04:00
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/AltraMayor/f3.git")
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(file-name (git-file-name name version))
|
2017-05-07 14:45:39 -04:00
|
|
|
(sha256
|
|
|
|
(base32
|
2018-08-14 15:42:22 -04:00
|
|
|
"0zglsmz683jg7f9wc6vmgljyg9w87pbnjw5x4w6x02w8233zvjqf"))))
|
2017-05-07 14:45:39 -04:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
2018-08-14 15:42:22 -04:00
|
|
|
'(#:tests? #f ; no check target
|
2017-05-07 14:45:39 -04:00
|
|
|
#:make-flags (list "CC=gcc"
|
|
|
|
(string-append "PREFIX=" %output))
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
2018-08-14 15:42:22 -04:00
|
|
|
(delete 'configure) ; no configure script
|
|
|
|
(add-after 'build 'build-extra
|
|
|
|
(lambda* (#:key make-flags #:allow-other-keys)
|
|
|
|
(apply invoke "make" "extra" make-flags)))
|
|
|
|
(add-after 'build 'install-extra
|
|
|
|
(lambda* (#:key make-flags #:allow-other-keys)
|
|
|
|
(apply invoke "make" "install-extra" make-flags))))))
|
2017-05-07 14:45:39 -04:00
|
|
|
(inputs
|
|
|
|
`(("eudev" ,eudev)
|
|
|
|
("parted" ,parted)))
|
|
|
|
(home-page "http://oss.digirati.com.br/f3/")
|
|
|
|
(synopsis "Test real capacity of flash memory cards and such.")
|
|
|
|
(description "F3 (Fight Flash Fraud or Fight Fake Flash) tests the full
|
|
|
|
capacity of a flash card (flash drive, flash disk, pendrive). F3 writes to
|
|
|
|
the card and then checks if can read it. It will assure you haven't been sold
|
|
|
|
a card with a smaller capacity than stated.")
|
|
|
|
(license license:gpl3+)))
|
2018-03-25 13:25:31 -04:00
|
|
|
|
|
|
|
(define-public python-parted
|
|
|
|
(package
|
|
|
|
(name "python-parted")
|
|
|
|
(version "3.11.1")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://github.com/dcantrell/pyparted/archive/v"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0r1nyjj40nacnfnv17x2mnsj6ga1qplyxyza82v2809dfhim2fwq"))))
|
|
|
|
(build-system python-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(delete 'check)
|
|
|
|
(add-after 'install 'check
|
|
|
|
(lambda* (#:key outputs inputs #:allow-other-keys)
|
|
|
|
(add-installed-pythonpath inputs outputs)
|
|
|
|
;; See <https://github.com/dcantrell/pyparted/issues/47>.
|
|
|
|
(substitute* "tests/test__ped_ped.py"
|
|
|
|
(("\"/tmp/temp-device-\"") "self.path"))
|
|
|
|
(invoke "python" "-m" "unittest" "discover" "-v")
|
|
|
|
#t)))))
|
|
|
|
(native-inputs
|
|
|
|
`(("e2fsprogs" ,e2fsprogs)
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
(propagated-inputs
|
|
|
|
`(("python-six" ,python-six)))
|
|
|
|
(inputs
|
|
|
|
`(("parted" ,parted)))
|
|
|
|
(home-page "https://github.com/dcantrell/pyparted")
|
|
|
|
(synopsis "Parted bindings for Python")
|
|
|
|
(description "This package provides @code{parted} bindings for Python.")
|
|
|
|
(license license:gpl2+)))
|
|
|
|
|
|
|
|
(define-public python2-parted
|
|
|
|
(package-with-python2 python-parted))
|
2018-03-28 15:25:05 -04:00
|
|
|
|
|
|
|
(define-public duperemove
|
|
|
|
(package
|
|
|
|
(name "duperemove")
|
2019-02-12 09:03:05 -05:00
|
|
|
(version "0.11.1")
|
2019-02-12 09:15:45 -05:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/markfasheh/duperemove.git")
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(sha256
|
|
|
|
(base32 "1scz76pvpljvrpfn176125xwaqwyy4pirlm11sc9spb2hyzknw2z"))
|
|
|
|
(file-name (git-file-name name version))))
|
2018-03-28 15:25:05 -04:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(native-inputs
|
|
|
|
`(("pkg-config" ,pkg-config)))
|
|
|
|
(inputs
|
|
|
|
`(("glib" ,glib)
|
|
|
|
("sqlite" ,sqlite)))
|
|
|
|
(arguments
|
2018-05-30 22:18:01 -04:00
|
|
|
`(#:tests? #f ; no test suite
|
2018-03-28 15:25:05 -04:00
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
2018-05-30 22:18:01 -04:00
|
|
|
(delete 'configure)) ; no configure script
|
2018-03-28 15:25:05 -04:00
|
|
|
#:make-flags (list (string-append "PREFIX=" %output)
|
|
|
|
"CC=gcc")))
|
|
|
|
(home-page "https://github.com/markfasheh/duperemove")
|
|
|
|
(synopsis "Tools for de-duplicating file system data")
|
|
|
|
(description "Duperemove is a simple tool for finding duplicated extents
|
|
|
|
and submitting them for deduplication. When given a list of files it will
|
|
|
|
hash their contents on a block by block basis and compare those hashes to each
|
|
|
|
other, finding and categorizing blocks that match each other. When given the
|
|
|
|
@option{-d} option, duperemove will submit those extents for deduplication
|
|
|
|
using the Linux kernel extent-same @code{ioctl}.
|
|
|
|
|
|
|
|
Duperemove can store the hashes it computes in a @dfn{hash file}. If given an
|
|
|
|
existing hash file, duperemove will only compute hashes for those files which
|
|
|
|
have changed since the last run. Thus you can run duperemove repeatedly on
|
|
|
|
your data as it changes, without having to re-checksum unchanged data.
|
|
|
|
|
|
|
|
Duperemove can also take input from the @command{fdupes} program.")
|
|
|
|
(license license:gpl2)))
|
2018-04-24 19:44:38 -04:00
|
|
|
|
|
|
|
(define-public ranger
|
|
|
|
(package
|
|
|
|
(name "ranger")
|
2018-10-10 16:05:37 -04:00
|
|
|
(version "1.9.2")
|
2018-04-24 19:44:38 -04:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://ranger.github.io/"
|
|
|
|
"ranger-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2018-10-10 16:05:37 -04:00
|
|
|
"12kbsqakbxs09y0x8hy66mmaf72rk0p850x7ryk2ghkq7wfin78f"))))
|
2018-04-24 19:44:38 -04:00
|
|
|
(build-system python-build-system)
|
2018-06-04 10:31:58 -04:00
|
|
|
(inputs
|
|
|
|
`(("w3m" ,w3m)))
|
2018-10-10 16:28:40 -04:00
|
|
|
(native-inputs
|
|
|
|
`(("which" ,which)
|
|
|
|
|
|
|
|
;; For tests.
|
|
|
|
("python-pytest" ,python-pytest)))
|
2018-06-04 10:31:58 -04:00
|
|
|
(arguments
|
2018-10-10 16:28:40 -04:00
|
|
|
'( ;; The 'test' target runs developer tools like pylint, which fail.
|
|
|
|
#:test-target "test_pytest"
|
2018-06-04 10:31:58 -04:00
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'configure 'wrap-program
|
|
|
|
;; Tell 'ranger' where 'w3mimgdisplay' is.
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(ranger (string-append out "/bin/ranger"))
|
|
|
|
(w3m (assoc-ref inputs "w3m"))
|
|
|
|
(w3mimgdisplay (string-append w3m
|
|
|
|
"/libexec/w3m/w3mimgdisplay")))
|
|
|
|
(wrap-program ranger
|
|
|
|
`("W3MIMGDISPLAY_PATH" ":" prefix (,w3mimgdisplay)))
|
2018-10-10 16:05:37 -04:00
|
|
|
#t)))
|
|
|
|
(replace 'check
|
2018-10-10 16:28:40 -04:00
|
|
|
;; The default check phase simply prints 'Ran 0 tests in 0.000s'.
|
|
|
|
(lambda* (#:key test-target #:allow-other-keys)
|
|
|
|
(invoke "make" test-target))))))
|
2018-04-24 19:44:38 -04:00
|
|
|
(home-page "https://ranger.github.io/")
|
|
|
|
(synopsis "Console file manager")
|
2018-04-26 22:08:23 -04:00
|
|
|
(description "ranger is a console file manager with Vi key bindings. It
|
|
|
|
provides a minimalistic and nice curses interface with a view on the directory
|
|
|
|
hierarchy. It ships with @code{rifle}, a file launcher that is good at
|
|
|
|
automatically finding out which program to use for what file type.")
|
2018-04-24 19:44:38 -04:00
|
|
|
(license license:gpl3)))
|
2018-05-29 06:22:02 -04:00
|
|
|
|
|
|
|
(define-public volume-key
|
|
|
|
(package
|
|
|
|
(name "volume-key")
|
2018-10-10 13:45:27 -04:00
|
|
|
(version "0.3.12")
|
2018-05-29 06:22:02 -04:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://releases.pagure.org/volume_key/volume_key-"
|
|
|
|
version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2018-10-10 13:45:27 -04:00
|
|
|
"16rhfz6sjwxlmss1plb2wv2i3jq6wza02rmz1d2jrlnsq67p98vc"))))
|
2018-05-29 06:22:02 -04:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(native-inputs
|
|
|
|
`(("pkg-config" ,pkg-config)
|
|
|
|
("util-linux" ,util-linux)
|
|
|
|
("swig" ,swig)
|
2018-10-10 13:45:27 -04:00
|
|
|
("python" ,python-3))) ; used to generate the Python bindings
|
2018-05-29 06:22:02 -04:00
|
|
|
(inputs
|
|
|
|
`(("cryptsetup" ,cryptsetup)
|
|
|
|
("nss" ,nss)
|
2018-10-10 13:45:27 -04:00
|
|
|
("lvm2" ,lvm2) ; for "-ldevmapper"
|
2018-05-29 06:22:02 -04:00
|
|
|
("glib" ,glib)
|
|
|
|
("gpgme" ,gpgme)))
|
|
|
|
(arguments
|
2018-10-10 13:45:27 -04:00
|
|
|
`(#:tests? #f ; not sure how tests are supposed to pass, even when run manually
|
2018-05-29 06:22:02 -04:00
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-before 'configure 'patch-python.h-path
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
(let ((python (assoc-ref inputs "python")))
|
|
|
|
(substitute* "Makefile.in"
|
|
|
|
(("/usr/include/python") (string-append python "/include/python")))
|
|
|
|
#t))))))
|
|
|
|
(home-page "https://pagure.io/volume_key")
|
|
|
|
(synopsis "Manipulate storage volume encryption keys")
|
|
|
|
(description
|
|
|
|
"This package provides a library for manipulating storage volume
|
|
|
|
encryption keys and storing them separately from volumes to handle forgotten
|
|
|
|
passphrases.")
|
|
|
|
(license license:gpl2)))
|
2018-06-28 16:45:08 -04:00
|
|
|
|
|
|
|
(define-public ndctl
|
|
|
|
(package
|
|
|
|
(name "ndctl")
|
2019-05-15 18:21:20 -04:00
|
|
|
(version "65")
|
2018-06-28 16:45:08 -04:00
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
2018-10-10 15:10:23 -04:00
|
|
|
(url "https://github.com/pmem/ndctl.git")
|
2018-06-28 16:45:08 -04:00
|
|
|
(commit (string-append "v" version))))
|
2018-10-10 15:10:23 -04:00
|
|
|
(file-name (git-file-name name version))
|
2018-06-28 16:45:08 -04:00
|
|
|
(sha256
|
|
|
|
(base32
|
2019-05-15 18:21:20 -04:00
|
|
|
"0d8hzfvyxs2q8kgkwgdizlml41kin4mhx3vpdsjk34pfi7mqy69y"))))
|
2018-06-28 16:45:08 -04:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(native-inputs
|
|
|
|
`(("asciidoc" ,asciidoc)
|
|
|
|
("automake" ,automake)
|
|
|
|
("autoconf" ,autoconf)
|
2018-10-10 15:10:23 -04:00
|
|
|
("bash-completion" ,bash-completion)
|
2018-06-28 16:45:08 -04:00
|
|
|
("docbook-xsl" ,docbook-xsl)
|
|
|
|
("libtool" ,libtool)
|
|
|
|
("libxml2" ,libxml2)
|
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
("xmlto" ,xmlto)
|
2018-10-10 15:10:23 -04:00
|
|
|
;; Required for offline docbook generation.
|
2018-06-28 16:45:08 -04:00
|
|
|
("which" ,which)))
|
|
|
|
(inputs
|
|
|
|
`(("eudev" ,eudev)
|
|
|
|
("json-c" ,json-c)
|
2019-02-14 22:54:53 -05:00
|
|
|
("keyutils" ,keyutils)
|
2018-06-28 16:45:08 -04:00
|
|
|
("kmod" ,kmod)
|
|
|
|
("util-linux" ,util-linux)))
|
|
|
|
(arguments
|
2018-10-10 15:10:23 -04:00
|
|
|
`(#:configure-flags
|
|
|
|
(list "--disable-asciidoctor" ; use docbook-xsl instead
|
|
|
|
"--without-systemd")
|
|
|
|
#:phases
|
2018-06-28 16:45:08 -04:00
|
|
|
(modify-phases %standard-phases
|
2018-10-01 17:29:04 -04:00
|
|
|
(add-after 'unpack 'patch-FHS-file-names
|
2018-06-28 16:45:08 -04:00
|
|
|
(lambda _
|
|
|
|
(substitute* "git-version-gen"
|
|
|
|
(("/bin/sh") (which "sh")))
|
|
|
|
(substitute* "git-version"
|
2018-10-01 17:29:04 -04:00
|
|
|
(("/bin/bash") (which "bash")))
|
|
|
|
#t)))
|
2018-06-28 16:45:08 -04:00
|
|
|
#:make-flags
|
|
|
|
(let ((out (assoc-ref %outputs "out")))
|
|
|
|
(list (string-append "BASH_COMPLETION_DIR=" out
|
|
|
|
"/share/bash-completion/completions")))))
|
|
|
|
(home-page "https://github.com/pmem/ndctl")
|
|
|
|
(synopsis "Manage the non-volatile memory device sub-system in the Linux kernel")
|
|
|
|
(description
|
|
|
|
"This package provides a utility library for managing the
|
|
|
|
libnvdimm (non-volatile memory device) sub-system in the Linux kernel.")
|
|
|
|
;; COPYING says LGPL2.1, but many source files are GPL2 so that's
|
|
|
|
;; the effective license. Note that some files under ccan/ are
|
|
|
|
;; covered by BSD-3 or public domain, see the individual folders.
|
|
|
|
(license license:gpl2)))
|
2018-05-30 06:33:08 -04:00
|
|
|
|
|
|
|
(define-public dmraid
|
|
|
|
(package
|
|
|
|
(name "dmraid")
|
|
|
|
(version "1.0.0.rc16-3")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://people.redhat.com/~heinzm/sw/dmraid/src/dmraid-"
|
|
|
|
version ".tar.bz2"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1n7vsqvh7y6yvil682q129d21yhb0cmvd5fvsbkza7ypd78inhlk"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(inputs `(("lvm2" ,lvm2)))
|
|
|
|
(native-inputs `(("which" ,which)))
|
|
|
|
(arguments
|
|
|
|
`(#:tests? #f ; No tests.
|
2018-08-01 07:15:56 -04:00
|
|
|
;; Prevent a race condition where some target would attempt to link
|
|
|
|
;; libdmraid.so before it had been built as reported in
|
|
|
|
;; <https://bugs.gnu.org/31999#187>.
|
|
|
|
#:parallel-build? #f
|
2018-05-30 06:33:08 -04:00
|
|
|
#:phases (modify-phases %standard-phases
|
|
|
|
(add-before 'configure 'change-directory
|
|
|
|
(lambda _
|
|
|
|
(chdir (string-append ,version "/dmraid"))
|
|
|
|
(substitute* "make.tmpl.in"
|
|
|
|
(("/bin/sh") (which "sh")))
|
|
|
|
#t)))
|
|
|
|
#:configure-flags (list ;; Make sure programs such as 'dmevent_tool' can
|
|
|
|
;; find libdmraid.so.
|
|
|
|
(string-append "LDFLAGS=-Wl,-rpath="
|
|
|
|
(assoc-ref %outputs "out")
|
|
|
|
"/lib"))))
|
|
|
|
(home-page "https://people.redhat.com/~heinzm/sw/dmraid/")
|
|
|
|
(synopsis "Device mapper RAID interface")
|
|
|
|
(description
|
|
|
|
"This software supports RAID device discovery, RAID set activation, creation,
|
|
|
|
removal, rebuild and display of properties for ATARAID/DDF1 metadata.
|
|
|
|
|
|
|
|
@command{dmraid} uses @file{libdevmapper} and the device-mapper kernel runtime
|
|
|
|
to create devices with respective mappings for the ATARAID sets discovered.")
|
|
|
|
(license license:gpl2+)))
|
2018-05-29 06:32:52 -04:00
|
|
|
|
|
|
|
(define-public libblockdev
|
|
|
|
(package
|
|
|
|
(name "libblockdev")
|
2019-02-27 04:58:42 -05:00
|
|
|
(version "2.21")
|
2018-05-29 06:32:52 -04:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
2018-10-10 14:05:18 -04:00
|
|
|
(uri (string-append "https://github.com/storaged-project/"
|
|
|
|
"libblockdev/releases/download/"
|
2018-05-29 06:32:52 -04:00
|
|
|
version "-1/libblockdev-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2019-02-27 04:58:42 -05:00
|
|
|
"02p13l4194j0vyd2zs7bb9dmyclcpqq8l3qv9289vjfbsvq2awii"))))
|
2018-05-29 06:32:52 -04:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(native-inputs
|
|
|
|
`(("pkg-config" ,pkg-config)
|
|
|
|
("python" ,python-wrapper)
|
|
|
|
("util-linux" ,util-linux)))
|
|
|
|
(inputs
|
|
|
|
`(("btrfs-progs" ,btrfs-progs)
|
|
|
|
("cryptsetup" ,cryptsetup)
|
|
|
|
("dosfstools" ,dosfstools)
|
|
|
|
("dmraid" ,dmraid)
|
|
|
|
("eudev" ,eudev)
|
|
|
|
("glib" ,glib)
|
|
|
|
("gobject-introspection" ,gobject-introspection)
|
|
|
|
("kmod" ,kmod)
|
|
|
|
("libbytesize" ,libbytesize)
|
|
|
|
("libyaml" ,libyaml)
|
|
|
|
("lvm2" ,lvm2)
|
|
|
|
("mdadm" ,mdadm)
|
|
|
|
("ndctl" ,ndctl)
|
|
|
|
("nss" ,nss)
|
|
|
|
("parted" ,parted)
|
|
|
|
("volume-key" ,volume-key)
|
|
|
|
;; ("xfsprogs" ,xfsprogs) ; TODO: Package?
|
|
|
|
))
|
|
|
|
(home-page "https://github.com/storaged-project/libblockdev")
|
|
|
|
(synopsis "Library for manipulating block devices")
|
|
|
|
(description
|
|
|
|
"libblockdev is a C library supporting GObject introspection for
|
|
|
|
manipulation of block devices. It has a plugin-based architecture where each
|
|
|
|
technology (like LVM, Btrfs, MD RAID, Swap...) is implemented in a separate
|
|
|
|
plugin, possibly with multiple implementations (e.g. using LVM CLI or the new
|
|
|
|
LVM D-Bus API).")
|
2018-10-10 14:05:18 -04:00
|
|
|
(license license:lgpl2.1+)))
|
2019-01-07 08:28:46 -05:00
|
|
|
|
|
|
|
(define-public rmlint
|
|
|
|
(package
|
|
|
|
(name "rmlint")
|
|
|
|
(version "2.8.0")
|
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/sahib/rmlint")
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1gc7gbnh0qg1kl151cv1ld87vhpm1v3pnkn7prhscdcc21jrg8nz"))))
|
|
|
|
(build-system scons-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:scons ,scons-python2
|
|
|
|
#:scons-flags (list (string-append "--prefix=" %output)
|
|
|
|
(string-append "--actual-prefix=" %output))
|
|
|
|
#:tests? #f ; No tests?
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'scons-propagate-environment
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
;; TODO: `rmlint --gui` fails with
|
|
|
|
;; "Failed to load shredder: No module named 'shredder'".
|
|
|
|
;; The GUI might also need extra dependencies, such as
|
|
|
|
;; python-gobject, python-cairo, dconf, librsvg, gtksourceview3.
|
|
|
|
(substitute* "lib/cmdline.c"
|
|
|
|
(("const char \\*commands\\[\\] = \\{\"python3\", \"python\", NULL\\};")
|
|
|
|
(string-append
|
|
|
|
"const char *commands[] = {\""
|
|
|
|
(assoc-ref inputs "python") "/bin/python"
|
|
|
|
"\", \"python\", NULL};")))
|
|
|
|
;; By design, SCons does not, by default, propagate
|
|
|
|
;; environment variables to subprocesses. See:
|
|
|
|
;; <http://comments.gmane.org/gmane.linux.distributions.nixos/4969>
|
|
|
|
;; Here, we modify the SConstruct file to arrange for
|
|
|
|
;; environment variables to be propagated.
|
|
|
|
(substitute* "SConstruct"
|
|
|
|
(("^env = Environment\\(.*\\)" all)
|
|
|
|
(string-append
|
|
|
|
all
|
|
|
|
"\nenv['ENV']=os.environ"))))))))
|
|
|
|
(native-inputs
|
|
|
|
`(("pkg-config" ,pkg-config)
|
|
|
|
("glib:bin" ,glib "bin")
|
|
|
|
("python-sphinx" ,python-sphinx)))
|
|
|
|
(inputs
|
|
|
|
`(("python" ,python-wrapper)
|
|
|
|
("glib" ,glib)
|
|
|
|
("libelf" ,libelf)
|
|
|
|
("elfutils" ,elfutils)
|
|
|
|
("json-glib" ,json-glib)
|
|
|
|
("libblkid" ,util-linux)))
|
|
|
|
(home-page "https://rmlint.rtfd.org")
|
2019-04-24 13:31:39 -04:00
|
|
|
(synopsis "Remove duplicates and other lint from the file system")
|
2019-01-07 08:28:46 -05:00
|
|
|
(description "@command{rmlint} finds space waste and other broken things
|
2019-04-24 13:31:39 -04:00
|
|
|
on your file system and offers to remove it. @command{rmlint} can find:
|
2019-01-07 08:28:46 -05:00
|
|
|
|
|
|
|
@itemize
|
|
|
|
@item duplicate files and duplicate directories,
|
|
|
|
@item non-stripped binaries (i.e. binaries with debug symbols),
|
|
|
|
@item broken symbolic links,
|
|
|
|
@item empty files and directories,
|
|
|
|
@item files with broken user and/or group ID.
|
|
|
|
@end itemize\n")
|
|
|
|
(license license:gpl3+)))
|