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.

62 lines
2.8 KiB

  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2019 Josh Holland <josh@inv.alid.pw>
  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 rcm)
  19. #:use-module (guix packages)
  20. #:use-module (guix download)
  21. #:use-module (guix build-system gnu)
  22. #:use-module (guix licenses)
  23. #:use-module (gnu packages python-xyz)
  24. #:use-module (gnu packages perl))
  25. (define-public rcm
  26. (package
  27. (name "rcm")
  28. (version "1.3.3")
  29. (source (origin
  30. (method url-fetch)
  31. (uri (string-append "https://thoughtbot.github.io/rcm/dist/rcm-"
  32. version ".tar.gz"))
  33. (sha256
  34. (base32 "1bqk7rrp1ckzvsvl9wghsr77m8xl3a7yc5gqdsisz492dx2j8mck"))))
  35. (build-system gnu-build-system)
  36. (arguments '(#:phases
  37. (modify-phases %standard-phases
  38. (add-after 'patch-source-shebangs 'patch-tests
  39. (lambda _
  40. (substitute* '("test/rcrc-tilde.t"
  41. "test/rcdn-hooks-run-in-order.t"
  42. "test/rcup-hooks-run-in-order.t")
  43. (("/bin/sh") (which "sh")))
  44. (substitute* "test/rcup-hooks.t"
  45. (("/usr/bin/env") (which "env")))
  46. #t)))
  47. #:parallel-tests? #f))
  48. (native-inputs `(("perl" ,perl)
  49. ("python-cram" ,python-cram)))
  50. (synopsis "Management suite for dotfiles")
  51. (description "The rcm suite of tools is for managing dotfiles directories. This is
  52. a directory containing all the @code{.*rc} files in your home directory
  53. (@code{.zshrc}, @code{.vimrc}, and so on). These files have gone by many
  54. names in history, such as rc files because they typically end in rc
  55. or dotfiles because they begin with a period. This suite is useful
  56. for committing your rc files to a central repository to share, but it also
  57. scales to a more complex situation such as multiple source directories
  58. shared between computers with some host-specific or task-specific files.")
  59. (license bsd-3)
  60. (home-page "https://github.com/thoughtbot/rcm")))