summaryrefslogtreecommitdiff
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
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>
-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.")))
250 #~(modify-phases #$phases 250 #~(modify-phases #$phases
251 (add-before 'check 'skip-some-more-tests 251 (add-before 'check 'skip-some-more-tests
252 (lambda _ 252 (lambda _
253 ;; Fontconfig can't figure out its cache directory 253 ;; Fontconfig can't figure out its cache directory.
254 (substitute* "src/testdir/test_startup.vim" 254 (substitute* "src/testdir/test_startup.vim"
255 ((".*Test_progname.*" line) 255 ((".*Test_progname.*" line)
256 (string-append line "return\n"))))) 256 (string-append line "return\n")))))
257 ;; Some tests require an X server, but do not start one.
257 (add-before 'check 'start-xserver 258 (add-before 'check 'start-xserver
258 (lambda* (#:key inputs #:allow-other-keys) 259 (lambda _
259 ;; Some tests require an X server, but does not start one. 260 (setenv "DISPLAY" ":1")
260 (let ((xorg-server (assoc-ref inputs "xorg-server")) 261 (zero? (system #$(file-append
261 (display ":1")) 262 (this-package-native-input
262 (setenv "DISPLAY" display) 263 "xorg-server")
263 (zero? (system (string-append xorg-server "/bin/Xvfb " 264 "/bin/Xvfb :1 &"))))))))))
264 display " &")))))))))))
265 (native-inputs 265 (native-inputs
266 (modify-inputs native-inputs 266 (modify-inputs native-inputs
267 (prepend pkg-config xorg-server-for-tests))) 267 (prepend pkg-config xorg-server-for-tests)))
@@ -292,8 +292,8 @@ with the editor vim.")))
292 python 292 python
293 ruby 293 ruby
294 tcl))) 294 tcl)))
295 ;; The description shares language with the vim package. When making 295 ;; This description shares all but the last paragraph with the vim
296 ;; changes, check if the other description also needs to be updated. 296 ;; package description. When changing one, also update the other.
297 (description 297 (description
298 "Vim is a highly configurable text editor built to enable efficient text 298 "Vim is a highly configurable text editor built to enable efficient text
299editing. It is an improved version of the vi editor distributed with most UNIX 299editing. It is an improved version of the vi editor distributed with most UNIX