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.
 
 
 
 
 
 

75 lines
2.8 KiB

  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
  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 vim)
  19. #:use-module ((guix licenses) #:renamer (symbol-prefix-proc 'license:))
  20. #:use-module (guix packages)
  21. #:use-module (guix download)
  22. #:use-module (guix build-system gnu)
  23. #:use-module (gnu packages)
  24. #:use-module (gnu packages gawk)
  25. #:use-module (gnu packages ncurses)
  26. #:use-module (gnu packages perl)
  27. #:use-module (gnu packages system) ; For GNU hostname
  28. #:use-module (gnu packages tcsh))
  29. (define-public vim
  30. (package
  31. (name "vim")
  32. (version "7.3")
  33. (source (origin
  34. (method url-fetch)
  35. (uri (string-append "ftp://ftp.vim.org/pub/vim/unix/vim-"
  36. version ".tar.bz2"))
  37. (sha256
  38. (base32
  39. "079201qk8g9yisrrb0dn52ch96z3lzw6z473dydw9fzi0xp5spaw"))))
  40. (build-system gnu-build-system)
  41. (arguments
  42. `(#:test-target "test"
  43. #:parallel-tests? #f
  44. #:phases
  45. (alist-replace
  46. 'configure
  47. (lambda* (#:key #:allow-other-keys #:rest args)
  48. (let ((configure (assoc-ref %standard-phases 'configure)))
  49. (apply configure args)
  50. (substitute* "runtime/tools/mve.awk"
  51. (("/usr/bin/nawk") (which "gawk")))
  52. (substitute* "src/testdir/Makefile"
  53. (("/bin/sh") (which "sh")))))
  54. %standard-phases)))
  55. (inputs
  56. `(("gawk", gawk)
  57. ("inetutils", inetutils)
  58. ("ncurses", ncurses)
  59. ("perl", perl)
  60. ("tcsh" ,tcsh))) ; For runtime/tools/vim32
  61. (home-page "http://www.vim.org/")
  62. (synopsis "VIM 7.3, a text editor based on vi.")
  63. (description
  64. "Vim is a highly configurable text editor built to enable efficient text
  65. editing. It is an improved version of the vi editor distributed with most UNIX
  66. systems.
  67. Vim is often called a \"programmer's editor,\" and so useful for programming
  68. that many consider it an entire IDE. It's not just for programmers, though. Vim
  69. is perfect for all kinds of text editing, from composing email to editing
  70. configuration files. ")
  71. (license license:vim)))