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.
 
 
 
 
 
 

66 lines
2.6 KiB

  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
  3. ;;;
  4. ;;; This file is part of GNU Guix.
  5. ;;;
  6. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  7. ;;; under the terms of the GNU General Public License as published by
  8. ;;; the Free Software Foundation; either version 3 of the License, or (at
  9. ;;; your option) any later version.
  10. ;;;
  11. ;;; GNU Guix is distributed in the hope that it will be useful, but
  12. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  13. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. ;;; GNU General Public License for more details.
  15. ;;;
  16. ;;; You should have received a copy of the GNU General Public License
  17. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  18. (define-module (gnu packages parted)
  19. #:use-module (guix licenses)
  20. #:use-module (guix packages)
  21. #:use-module (guix download)
  22. #:use-module (guix build-system gnu)
  23. #:use-module (gnu packages check)
  24. #:use-module ((gnu packages gettext)
  25. #:renamer (symbol-prefix-proc 'guix:))
  26. #:use-module (gnu packages linux)
  27. #:use-module (gnu packages readline))
  28. (define-public parted
  29. (package
  30. (name "parted")
  31. (version "3.1")
  32. (source
  33. (origin
  34. (method url-fetch)
  35. (uri (string-append "mirror://gnu/parted/parted-"
  36. version ".tar.xz"))
  37. (sha256
  38. (base32
  39. "05fa4m1bky9d13hqv91jlnngzlyn7y4rnnyq6d86w0dg3vww372y"))))
  40. (build-system gnu-build-system)
  41. (arguments `(#:configure-flags '("--disable-device-mapper")
  42. #:phases (alist-cons-before
  43. 'configure 'fix-mkswap
  44. (lambda* (#:key inputs #:allow-other-keys)
  45. (let ((util-linux (assoc-ref inputs
  46. "util-linux")))
  47. (substitute*
  48. "tests/t9050-partition-table-types.sh"
  49. (("mkswap")
  50. (string-append util-linux "/sbin/mkswap")))))
  51. %standard-phases)))
  52. (inputs
  53. ;; XXX: add 'lvm2'.
  54. `(("check" ,check)
  55. ("gettext" ,guix:gettext)
  56. ("readline" ,readline)
  57. ("util-linux" ,util-linux)))
  58. (home-page "http://www.gnu.org/software/parted/")
  59. (synopsis "Disk partition editor")
  60. (description
  61. "Parted is a tool for creating and manipulating disk partition tables.
  62. It consists of a library and a command-line tool for performing these tasks.")
  63. (license gpl3+)))