2013-02-15 10:46:29 +00:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2014-06-03 20:12:05 +00:00
|
|
|
;;; Copyright © 2012, 2013 Nikita Karetnikov <nikita@karetnikov.org>
|
2015-11-21 00:07:03 +00:00
|
|
|
;;; Copyright © 2015 Mathieu Lirzin <mthl@gnu.org>
|
2015-05-07 04:53:48 +00:00
|
|
|
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
|
2016-07-15 12:29:22 +00:00
|
|
|
;;; Copyright © 2016 Tobias Geerinckx-Rice <me@tobias.gr>
|
2016-03-21 13:22:31 +00:00
|
|
|
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
|
2016-06-16 21:58:45 +00:00
|
|
|
;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
|
2016-08-21 21:39:19 +00:00
|
|
|
;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
|
2013-02-15 10:46:29 +00: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 20:12:05 +00:00
|
|
|
(define-module (gnu packages disk)
|
2016-08-21 20:54:29 +00:00
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
2013-02-15 10:46:29 +00:00
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix download)
|
|
|
|
#:use-module (guix build-system gnu)
|
2016-06-16 21:58:45 +00:00
|
|
|
#:use-module (gnu packages)
|
2016-08-21 21:39:19 +00:00
|
|
|
#:use-module (gnu packages base)
|
|
|
|
#:use-module (gnu packages docbook)
|
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 21:12:49 +00:00
|
|
|
#:use-module (gnu packages gettext)
|
2016-08-21 21:39:19 +00:00
|
|
|
#:use-module (gnu packages glib)
|
|
|
|
#:use-module (gnu packages gtk)
|
|
|
|
#:use-module (gnu packages gnome)
|
2013-02-15 10:46:29 +00:00
|
|
|
#:use-module (gnu packages linux)
|
2016-06-16 21:58:45 +00:00
|
|
|
#:use-module (gnu packages ncurses)
|
2015-11-21 00:07:03 +00:00
|
|
|
#:use-module (gnu packages perl)
|
2016-08-21 21:39:19 +00:00
|
|
|
#:use-module (gnu packages pkg-config)
|
2016-06-16 21:58:45 +00:00
|
|
|
#:use-module (gnu packages popt)
|
2015-11-21 00:07:03 +00:00
|
|
|
#:use-module (gnu packages python)
|
2014-06-03 20:12:05 +00:00
|
|
|
#:use-module (gnu packages readline)
|
|
|
|
#:use-module (gnu packages guile)
|
2016-08-21 21:39:19 +00:00
|
|
|
#:use-module (gnu packages compression)
|
|
|
|
#:use-module (gnu packages xml))
|
2013-02-15 10:46:29 +00:00
|
|
|
|
|
|
|
(define-public parted
|
|
|
|
(package
|
|
|
|
(name "parted")
|
2015-11-21 00:07:03 +00:00
|
|
|
(version "3.2")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://gnu/parted/parted-"
|
|
|
|
version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1r3qpg3bhz37mgvp9chsaa3k0csby3vayfvz8ggsqz194af5i2w5"))))
|
2013-02-15 10:46:29 +00:00
|
|
|
(build-system gnu-build-system)
|
2015-11-21 00:07:03 +00: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 10:46:29 +00:00
|
|
|
(inputs
|
2015-11-21 00:07:03 +00:00
|
|
|
`(("lvm2" ,lvm2)
|
|
|
|
("readline" ,readline)
|
2013-02-15 10:46:29 +00: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 11:01:56 +00:00
|
|
|
(native-inputs
|
2015-11-21 00:07:03 +00:00
|
|
|
`(("gettext" ,gnu-gettext)
|
|
|
|
;; 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 16:04:25 +00:00
|
|
|
(synopsis "Disk partition editor")
|
2013-02-15 10:46:29 +00:00
|
|
|
(description
|
2013-12-01 21:33:23 +00:00
|
|
|
"GNU Parted is a package for creating and manipulating disk partition
|
|
|
|
tables. It includes a library and command-line utility.")
|
2016-08-21 20:54:29 +00:00
|
|
|
(license license:gpl3+)))
|
2014-06-03 20:12:05 +00:00
|
|
|
|
|
|
|
(define-public fdisk
|
|
|
|
(package
|
|
|
|
(name "fdisk")
|
|
|
|
(version "2.0.0a")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://gnu/fdisk/gnufdisk-"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"04nd7civ561x2lwcmxhsqbprml3178jfc58fy1v7hzqg5k4nbhy3"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(inputs
|
|
|
|
`(("gettext" ,gnu-gettext)
|
|
|
|
("guile" ,guile-1.8)
|
|
|
|
("util-linux" ,util-linux)
|
|
|
|
("parted" ,parted)))
|
|
|
|
(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 20:54:29 +00:00
|
|
|
(license license:gpl3+)))
|
2014-06-03 20:12:05 +00:00
|
|
|
|
2016-06-16 21:58:45 +00:00
|
|
|
(define-public gptfdisk
|
|
|
|
(package
|
|
|
|
(name "gptfdisk")
|
|
|
|
(version "1.0.1")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://sourceforge/gptfdisk/gptfdisk/"
|
|
|
|
version "/" name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1izazbyv5n2d81qdym77i8mg9m870hiydmq4d0s51npx5vp8lk46"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(inputs
|
|
|
|
`(("gettext" ,gnu-gettext)
|
|
|
|
("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)
|
|
|
|
(let ((bin (string-append (assoc-ref outputs "out") "/bin")))
|
|
|
|
(install-file "gdisk" bin)
|
|
|
|
(install-file "sgdisk" bin)
|
|
|
|
(install-file "cgdisk" bin)
|
|
|
|
(install-file "fixparts" bin)))))))
|
|
|
|
(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
|
|
|
|
works on Globally Unique Identifier (GUID) Partition Table (GPT) disks, rather
|
|
|
|
than on the more common (through 2009) Master Boot Record (MBR) partition
|
|
|
|
tables.")
|
2016-08-21 20:54:29 +00:00
|
|
|
(license license:gpl2)))
|
2016-06-16 21:58:45 +00:00
|
|
|
|
2014-06-03 20:12:05 +00:00
|
|
|
(define-public ddrescue
|
|
|
|
(package
|
|
|
|
(name "ddrescue")
|
2016-03-21 13:22:31 +00:00
|
|
|
(version "1.21")
|
2014-06-03 20:12:05 +00:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://gnu/ddrescue/ddrescue-"
|
|
|
|
version ".tar.lz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2016-03-21 13:22:31 +00:00
|
|
|
"1b71hb42lh33y9843nd1mxlwkk9qh9ajvnz6ivzd1jq9lav4x7ph"))))
|
2014-06-03 20:12:05 +00:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(home-page "http://www.gnu.org/software/ddrescue/ddrescue.html")
|
|
|
|
(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 20:54:29 +00:00
|
|
|
(license license:gpl3+)))
|
2015-05-07 04:53:48 +00:00
|
|
|
|
|
|
|
(define-public dosfstools
|
|
|
|
(package
|
|
|
|
(name "dosfstools")
|
2016-05-31 17:45:07 +00:00
|
|
|
(version "4.0")
|
2015-05-07 04:53:48 +00:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://github.com/" name "/" name
|
|
|
|
"/releases/download/v" version "/"
|
|
|
|
name "-" version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2016-05-31 17:45:07 +00:00
|
|
|
"1bvxbv1w6vhbx0nx7ygp700wq5k2hjv0hm7w0kz1x7amaf4p6dwh"))))
|
2015-05-07 04:53:48 +00:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:make-flags (list (string-append "PREFIX=" %output)
|
|
|
|
"CC=gcc")
|
2016-05-31 17:45:07 +00:00
|
|
|
#:tests? #f)) ;no tests
|
2015-05-07 04:53:48 +00:00
|
|
|
(home-page "https://github.com/dosfstools/dosfstools")
|
2016-09-16 06:08:48 +00:00
|
|
|
(synopsis "Utilities for making and checking MS-DOS FAT file systems")
|
2015-05-07 04:53:48 +00:00
|
|
|
(description
|
|
|
|
"The dosfstools package includes the mkfs.fat and fsck.fat utilities,
|
2016-09-16 06:08:48 +00:00
|
|
|
which respectively make and check MS-DOS FAT file systems.")
|
2016-08-21 20:54:29 +00:00
|
|
|
(license license:gpl3+)))
|
2016-02-02 07:04:34 +00:00
|
|
|
|
|
|
|
(define-public sdparm
|
|
|
|
(package
|
|
|
|
(name "sdparm")
|
|
|
|
(version "1.09")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "http://sg.danny.cz/sg/p/"
|
|
|
|
name "-" version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0jakqyjwi72zqjzss04bally0xl0lc4710mx8da08vpmir1hfphg"))))
|
|
|
|
(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 20:54:29 +00:00
|
|
|
(license license:bsd-3)))
|
2016-03-08 00:47:58 +00: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 20:54:29 +00:00
|
|
|
(license license:gpl3+)))
|
2016-08-21 21:39:19 +00:00
|
|
|
|
|
|
|
(define-public gparted
|
|
|
|
(package
|
|
|
|
(name "gparted")
|
|
|
|
(version "0.26.1")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://sourceforge/gparted/gparted/gparted-"
|
|
|
|
version "/gparted-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32 "1h9d6x335wxpm49yphzm9n1hbh2hcg0p2rphv76mrvsss91bcm1g"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:tests? #f ; Tests require a network connection.
|
|
|
|
#: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)))
|
|
|
|
(home-page "https://sourceforge.net/projects/gparted/")
|
|
|
|
(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+)))
|