summaryrefslogtreecommitdiff
path: root/gnu/packages/vim.scm
diff options
context:
space:
mode:
authorHerman Rimm <herman@rimm.ee>2026-03-21 14:28:02 +0100
committerLudovic Courtès <ludo@gnu.org>2026-04-01 22:06:13 +0200
commit04a3266a3debe1fb4a483da08101b4ca93a42bf7 (patch)
tree4b389b37ac877884d54afa6bc513d2c5c16a6240 /gnu/packages/vim.scm
parent40e32085e4b7b80e29d1fc46ae28b96e321db8f2 (diff)
gnu: vim-full: Refactor arguments.
* gnu/packages/vim.scm (vim-full)[arguments]: Adjust comments, refactor start-xserver phase. [description]: Adjust comment. Change-Id: Ic0cc29c65f89b5d0f06f023b47a1eeec4682b0b7 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages/vim.scm')
-rw-r--r--gnu/packages/vim.scm20
1 files changed, 10 insertions, 10 deletions
diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm
index 1badc69c800..30247b6912e 100644
--- a/gnu/packages/vim.scm
+++ b/gnu/packages/vim.scm
@@ -250,18 +250,18 @@ with the editor vim.")))
#~(modify-phases #$phases
(add-before 'check 'skip-some-more-tests
(lambda _
- ;; Fontconfig can't figure out its cache directory
+ ;; Fontconfig can't figure out its cache directory.
(substitute* "src/testdir/test_startup.vim"
((".*Test_progname.*" line)
(string-append line "return\n")))))
+ ;; Some tests require an X server, but do not start one.
(add-before 'check 'start-xserver
- (lambda* (#:key inputs #:allow-other-keys)
- ;; Some tests require an X server, but does not start one.
- (let ((xorg-server (assoc-ref inputs "xorg-server"))
- (display ":1"))
- (setenv "DISPLAY" display)
- (zero? (system (string-append xorg-server "/bin/Xvfb "
- display " &")))))))))))
+ (lambda _
+ (setenv "DISPLAY" ":1")
+ (zero? (system #$(file-append
+ (this-package-native-input
+ "xorg-server")
+ "/bin/Xvfb :1 &"))))))))))
(native-inputs
(modify-inputs native-inputs
(prepend pkg-config xorg-server-for-tests)))
@@ -292,8 +292,8 @@ with the editor vim.")))
python
ruby
tcl)))
- ;; The description shares language with the vim package. When making
- ;; changes, check if the other description also needs to be updated.
+ ;; This description shares all but the last paragraph with the vim
+ ;; package description. When changing one, also update the other.
(description
"Vim is a highly configurable text editor built to enable efficient text
editing. It is an improved version of the vi editor distributed with most UNIX