Commit | Line | Data |
---|---|---|
eb490858 CR |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com> | |
504b9ba7 | 3 | ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il> |
47956fa0 | 4 | ;;; Copyright © 2016, 2017 ng0 <ng0@n0.is> |
9b11eee9 | 5 | ;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net> |
38190ea5 | 6 | ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com> |
442277d0 | 7 | ;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr> |
c3ebaec5 | 8 | ;;; Copyright © 2019 HiPhish <hiphish@posteo.de> |
24d32e67 | 9 | ;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu> |
d0f31aee | 10 | ;;; Copyright © 2019, 2020 Jakub Kądziołka <kuba@kadziolka.net> |
eb490858 CR |
11 | ;;; |
12 | ;;; This file is part of GNU Guix. | |
13 | ;;; | |
14 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
15 | ;;; under the terms of the GNU General Public License as published by | |
16 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
17 | ;;; your option) any later version. | |
18 | ;;; | |
19 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
20 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
21 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
22 | ;;; GNU General Public License for more details. | |
23 | ;;; | |
24 | ;;; You should have received a copy of the GNU General Public License | |
25 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
26 | ||
27 | (define-module (gnu packages vim) | |
b5b73a82 | 28 | #:use-module ((guix licenses) #:prefix license:) |
eb490858 | 29 | #:use-module (guix packages) |
38190ea5 | 30 | #:use-module (guix utils) |
eb490858 | 31 | #:use-module (guix download) |
843b19ca | 32 | #:use-module (guix git-download) |
9b11eee9 | 33 | #:use-module (guix build-system cmake) |
eb490858 | 34 | #:use-module (guix build-system gnu) |
24d32e67 | 35 | #:use-module (guix build-system python) |
eb490858 | 36 | #:use-module (gnu packages) |
ad6198a5 | 37 | #:use-module (gnu packages acl) |
38 | #:use-module (gnu packages admin) ; For GNU hostname | |
39 | #:use-module (gnu packages attr) | |
9123c420 | 40 | #:use-module (gnu packages autotools) |
9b11eee9 | 41 | #:use-module (gnu packages base) |
ad6198a5 | 42 | #:use-module (gnu packages fontutils) |
eb490858 | 43 | #:use-module (gnu packages gawk) |
ad6198a5 | 44 | #:use-module (gnu packages gettext) |
45 | #:use-module (gnu packages glib) | |
9b11eee9 | 46 | #:use-module (gnu packages gperf) |
65dccb3a | 47 | #:use-module (gnu packages groff) |
ad6198a5 | 48 | #:use-module (gnu packages gtk) |
49 | #:use-module (gnu packages image) | |
9b11eee9 RW |
50 | #:use-module (gnu packages jemalloc) |
51 | #:use-module (gnu packages libevent) | |
ad6198a5 | 52 | #:use-module (gnu packages linux) |
53 | #:use-module (gnu packages lua) | |
eb490858 CR |
54 | #:use-module (gnu packages ncurses) |
55 | #:use-module (gnu packages perl) | |
ad6198a5 | 56 | #:use-module (gnu packages pkg-config) |
57 | #:use-module (gnu packages python) | |
24d32e67 | 58 | #:use-module (gnu packages python-xyz) |
ad6198a5 | 59 | #:use-module (gnu packages ruby) |
9b11eee9 | 60 | #:use-module (gnu packages serialization) |
ad6198a5 | 61 | #:use-module (gnu packages shells) |
62 | #:use-module (gnu packages tcl) | |
de3ed0b4 | 63 | #:use-module (gnu packages text-editors) |
9b11eee9 | 64 | #:use-module (gnu packages terminals) |
ad6198a5 | 65 | #:use-module (gnu packages xdisorg) |
66 | #:use-module (gnu packages xorg)) | |
eb490858 CR |
67 | |
68 | (define-public vim | |
69 | (package | |
70 | (name "vim") | |
40cae204 | 71 | (version "8.2.0303") |
eb490858 | 72 | (source (origin |
b1303549 EF |
73 | (method git-fetch) |
74 | (uri (git-reference | |
75 | (url "https://github.com/vim/vim") | |
76 | (commit (string-append "v" version)))) | |
77 | (file-name (git-file-name name version)) | |
eb490858 CR |
78 | (sha256 |
79 | (base32 | |
40cae204 | 80 | "1559lg8wgydyfc8c2sb2m7p8mlkarm7539qfxkh1skrw4mxi605k")))) |
eb490858 CR |
81 | (build-system gnu-build-system) |
82 | (arguments | |
83 | `(#:test-target "test" | |
84 | #:parallel-tests? #f | |
85 | #:phases | |
7a93feb8 | 86 | (modify-phases %standard-phases |
b947ba77 TGR |
87 | (add-after 'unpack 'disable-CoW |
88 | ;; Disable copy-on-write (CoW) in the build directory. Tests fail on | |
89 | ;; btrfs (and possibly other CoW file systems) for unclear reasons. | |
90 | ;; This needs to be run early as it only affects newly-created files. | |
91 | (lambda _ | |
92 | (invoke "chattr" "-R" "+C" "."))) | |
7a93feb8 EF |
93 | (add-after 'configure 'patch-config-files |
94 | (lambda _ | |
95 | (substitute* "runtime/tools/mve.awk" | |
96 | (("/usr/bin/nawk") (which "gawk"))) | |
db3cc007 | 97 | (substitute* '("src/testdir/Makefile" |
aa75dada EF |
98 | "src/testdir/test_normal.vim" |
99 | "src/testdir/test_terminal.vim") | |
db3cc007 | 100 | (("/bin/sh") (which "sh"))) |
af60a200 | 101 | #t)) |
9efcc494 JK |
102 | (add-before 'check 'set-TZDIR |
103 | (lambda* (#:key inputs #:allow-other-keys) | |
104 | ;; One of the tests tests timezone-dependent functions. | |
105 | (setenv "TZDIR" | |
106 | (string-append (assoc-ref inputs "tzdata") | |
107 | "/share/zoneinfo")) | |
108 | #t)) | |
109 | (add-before 'check 'skip-failing-tests | |
af60a200 | 110 | (lambda _ |
9efcc494 JK |
111 | ;; This test assumes that PID 1 is run as root and that the user |
112 | ;; running the test suite does not have permission to kill(1, 0) | |
113 | ;; it. This is not true in the build container, where both PID 1 | |
114 | ;; and the test suite are run as the same user. Skip the test. | |
115 | ;; An alternative fix would be to patch the PID used to a random | |
116 | ;; 32-bit value and hope it never shows up in the test environment. | |
117 | (substitute* "src/testdir/test_swap.vim" | |
118 | (("if !IsRoot\\(\\)") "if 0")) | |
7af6e5da | 119 | |
9efcc494 JK |
120 | ;; This test checks how the terminal looks after executing some |
121 | ;; actions. The path of the bash binary is shown, which results in | |
122 | ;; a difference being detected. Patching the expected result is | |
123 | ;; non-trivial due to the special format used, so skip the test. | |
124 | (substitute* "src/testdir/test_terminal.vim" | |
125 | ((".*Test_terminal_postponed_scrollback.*" line) | |
126 | (string-append line "return\n"))) | |
db3cc007 | 127 | #t))))) |
eb490858 | 128 | (inputs |
b3546174 | 129 | `(("gawk" ,gawk) |
b3546174 MW |
130 | ("ncurses" ,ncurses) |
131 | ("perl" ,perl) | |
9efcc494 | 132 | ("tcsh" ,tcsh))) ; For runtime/tools/vim32 |
9123c420 | 133 | (native-inputs |
9efcc494 JK |
134 | `(("libtool" ,libtool) |
135 | ||
136 | ;; For tests. | |
b947ba77 | 137 | ("e2fsprogs" ,e2fsprogs) ; for chattr in disable-CoW above |
9efcc494 | 138 | ("tzdata" ,tzdata-for-tests))) |
3d6bc5af | 139 | (home-page "https://www.vim.org/") |
d4bf49b1 | 140 | (synopsis "Text editor based on vi") |
eb490858 CR |
141 | (description |
142 | "Vim is a highly configurable text editor built to enable efficient text | |
35b9e423 | 143 | editing. It is an improved version of the vi editor distributed with most UNIX |
eb490858 CR |
144 | systems. |
145 | ||
146 | Vim is often called a \"programmer's editor,\" and so useful for programming | |
35b9e423 EB |
147 | that many consider it an entire IDE. It's not just for programmers, though. |
148 | Vim is perfect for all kinds of text editing, from composing email to editing | |
d4bf49b1 | 149 | configuration files.") |
eb490858 | 150 | (license license:vim))) |
ad6198a5 | 151 | |
b0a1d7ef RW |
152 | (define-public xxd |
153 | (package (inherit vim) | |
154 | (name "xxd") | |
155 | (arguments | |
156 | `(#:make-flags '("CC=gcc") | |
157 | #:tests? #f ; there are none | |
158 | #:phases | |
159 | (modify-phases %standard-phases | |
160 | (delete 'configure) | |
161 | (add-after 'unpack 'chdir | |
162 | (lambda _ | |
2d4fdb70 EF |
163 | (chdir "src/xxd") |
164 | #t)) | |
b0a1d7ef RW |
165 | (replace 'install |
166 | (lambda* (#:key outputs #:allow-other-keys) | |
167 | (let ((bin (string-append (assoc-ref outputs "out") "/bin"))) | |
168 | (install-file "xxd" bin) | |
169 | #t)))))) | |
0ec430f7 | 170 | (inputs `()) |
9123c420 | 171 | (native-inputs `()) |
b0a1d7ef RW |
172 | (synopsis "Hexdump utility from vim") |
173 | (description "This package provides the Hexdump utility xxd that comes | |
174 | with the editor vim."))) | |
175 | ||
ad6198a5 | 176 | (define-public vim-full |
177 | (package | |
3c143783 LF |
178 | ;; This package should share its source with Vim, but it doesn't |
179 | ;; build reliably, and we want to keep Vim up to date due to the | |
180 | ;; frequency of important bug fixes. | |
ad6198a5 | 181 | (inherit vim) |
182 | (name "vim-full") | |
183 | (arguments | |
184 | `(#:configure-flags | |
185 | (list (string-append "--with-lua-prefix=" | |
186 | (assoc-ref %build-inputs "lua")) | |
187 | "--with-features=huge" | |
188 | "--enable-python3interp=yes" | |
189 | "--enable-perlinterp=yes" | |
190 | "--enable-rubyinterp=yes" | |
191 | "--enable-tclinterp=yes" | |
192 | "--enable-luainterp=yes" | |
193 | "--enable-cscope" | |
194 | "--enable-sniff" | |
195 | "--enable-multibyte" | |
196 | "--enable-xim" | |
197 | "--disable-selinux" | |
198 | "--enable-gui") | |
d0f31aee JK |
199 | ;; This flag fixes the following error: |
200 | ;; .../libpython3.7m.a(pyexpat.o): undefined reference to symbol 'XML_FreeContentModel' | |
201 | ;; .../libexpat.so.1: error adding symbols: DSO missing from command line | |
202 | #:make-flags '("LDFLAGS=-lexpat") | |
38190ea5 MB |
203 | ,@(substitute-keyword-arguments (package-arguments vim) |
204 | ((#:phases phases) | |
205 | `(modify-phases ,phases | |
d0f31aee JK |
206 | (add-before 'check 'skip-previewpopup |
207 | ;; This test fails when the path to the source is long. See: | |
208 | ;; https://github.com/vim/vim/issues/5615 | |
209 | (lambda _ | |
210 | (substitute* "src/testdir/test_popupwin.vim" | |
211 | ((".*Test_previewpopup.*" line) | |
212 | (string-append line "return\n"))))) | |
597f35e6 EF |
213 | (add-before 'check 'skip-test87 |
214 | ;; This test fails for unknown reasons after switching | |
215 | ;; to a git checkout. | |
216 | (lambda _ | |
217 | (delete-file "src/testdir/test87.ok") | |
218 | (delete-file "src/testdir/test87.in") | |
219 | (substitute* '("src/Makefile" | |
220 | "src/testdir/Make_vms.mms") | |
221 | (("test87") "")) | |
222 | (substitute* "src/testdir/Make_all.mak" | |
223 | (("test86.out \\\\") "test86") | |
224 | (("test87.out") "")) | |
225 | #t)) | |
38190ea5 MB |
226 | (add-before 'check 'start-xserver |
227 | (lambda* (#:key inputs #:allow-other-keys) | |
228 | ;; Some tests require an X server, but does not start one. | |
229 | (let ((xorg-server (assoc-ref inputs "xorg-server")) | |
230 | (display ":1")) | |
231 | (setenv "DISPLAY" display) | |
232 | (zero? (system (string-append xorg-server "/bin/Xvfb " | |
233 | display " &"))))))))))) | |
ad6198a5 | 234 | (native-inputs |
38190ea5 | 235 | `(("pkg-config" ,pkg-config) |
ff337525 | 236 | ("xorg-server" ,xorg-server-for-tests) |
9123c420 | 237 | ,@(package-native-inputs vim))) |
ad6198a5 | 238 | (inputs |
239 | `(("acl" ,acl) | |
240 | ("atk" ,atk) | |
241 | ("attr" ,attr) | |
242 | ("cairo" ,cairo) | |
243 | ("fontconfig" ,fontconfig) | |
244 | ("freetype" ,freetype) | |
245 | ("gdk-pixbuf" ,gdk-pixbuf) | |
7c90d0f4 | 246 | ("gettext" ,gettext-minimal) |
ad6198a5 | 247 | ("glib" ,glib) |
248 | ("gpm" ,gpm) | |
249 | ("gtk" ,gtk+-2) | |
250 | ("harfbuzz" ,harfbuzz) | |
251 | ("libice" ,libice) | |
252 | ("libpng" ,libpng) | |
253 | ("libsm" ,libsm) | |
254 | ("libx11" ,libx11) | |
255 | ("libxdmcp" ,libxdmcp) | |
256 | ("libxt" ,libxt) | |
257 | ("libxpm" ,libxpm) | |
258 | ("lua" ,lua) | |
259 | ("pango" ,pango) | |
260 | ("pixman" ,pixman) | |
261 | ("python-3" ,python) | |
262 | ("ruby" ,ruby) | |
263 | ("tcl" ,tcl) | |
264 | ,@(package-inputs vim))))) | |
65dccb3a | 265 | |
8bb7b4f5 | 266 | (define-public vim-neocomplete |
267 | (package | |
268 | (name "vim-neocomplete") | |
269 | (version "2.1") | |
270 | (source | |
271 | (origin | |
6a9aa795 EF |
272 | (method git-fetch) |
273 | (uri (git-reference | |
274 | (url "https://github.com/Shougo/neocomplete.vim") | |
275 | (commit (string-append "ver." version)))) | |
276 | (file-name (git-file-name name version)) | |
8bb7b4f5 | 277 | (sha256 |
278 | (base32 | |
6a9aa795 | 279 | "1h6sci5mhdfg6sjsjpi8l5li02hg858zcayiwl60y9j2gqnd18lv")))) |
8bb7b4f5 | 280 | (build-system gnu-build-system) |
281 | (arguments | |
282 | `(#:tests? #f | |
283 | #:phases | |
284 | (modify-phases %standard-phases | |
285 | (delete 'configure) | |
286 | (delete 'build) | |
287 | (replace 'install | |
288 | (lambda* (#:key outputs #:allow-other-keys) | |
289 | (let* ((out (assoc-ref outputs "out")) | |
290 | (vimfiles (string-append out "/share/vim/vimfiles")) | |
291 | (autoload (string-append vimfiles "/autoload")) | |
292 | (doc (string-append vimfiles "/doc")) | |
293 | (plugin (string-append vimfiles "/plugin"))) | |
294 | (copy-recursively "autoload" autoload) | |
295 | (copy-recursively "doc" doc) | |
296 | (copy-recursively "plugin" plugin) | |
297 | #t)))))) | |
298 | (synopsis "Next generation completion framework for Vim") | |
299 | (description | |
300 | "@code{neocomplete}, an abbreviation of 'neo-completion with cache', | |
301 | is a plugin for Vim. | |
302 | It provides keyword completion system by maintaining a cache of keywords in | |
303 | the current buffer. Neocomplete can be customized easily and has many more | |
304 | features than Vim's built-in completion.") | |
305 | (home-page "https://github.com/Shougo/neocomplete.vim/") | |
306 | (license license:expat))) | |
307 | ||
34af179a | 308 | ;; There are no release tarballs. |
309 | (define-public vim-neosnippet-snippets | |
310 | (let ((commit "8e2b1c0cab9ed9a832b3743dbb65e9966a64331a") | |
311 | (revision "1")) | |
312 | (package | |
313 | (name "vim-neosnippet-snippets") | |
314 | (version (string-append "0.0.0-" revision "." (string-take commit 7))) | |
315 | (source | |
316 | (origin | |
317 | (method git-fetch) | |
318 | (uri (git-reference | |
319 | (url "https://github.com/Shougo/neosnippet-snippets") | |
320 | (commit commit))) | |
321 | (file-name (string-append name "-" version "-checkout")) | |
322 | (sha256 | |
323 | (base32 | |
324 | "151wpvbj6jb9jdkbhj3b77f5sq7y328spvwfbqyj1y32rg4ifmc6")))) | |
325 | (build-system gnu-build-system) | |
326 | (arguments | |
327 | `(#:tests? #f | |
328 | #:phases | |
329 | (modify-phases %standard-phases | |
330 | (delete 'configure) | |
331 | (delete 'build) | |
332 | (replace 'install | |
333 | (lambda* (#:key outputs #:allow-other-keys) | |
334 | (let* ((out (assoc-ref outputs "out")) | |
335 | (vimfiles (string-append out "/share/vim/vimfiles"))) | |
336 | (copy-recursively "neosnippets" | |
337 | (string-append vimfiles "/neosnippets")) | |
338 | #t)))))) | |
339 | (synopsis "Snippets for neosnippet") | |
340 | (description | |
341 | "@code{neosnippet-snippets} provides standard snippets for the Vim plugin | |
342 | @code{neosnippet}. Snippets are small templates for commonly used code that | |
343 | you can fill in on the fly.") | |
344 | (home-page "https://github.com/Shougo/neosnippet-snippets") | |
345 | (license license:expat)))) | |
346 | ||
5890f891 | 347 | ;; The released tarball is too old for our Vim. |
348 | (define-public vim-neosnippet | |
349 | (let ((commit "1bd7e23c79b73da16eb0c9469b25c376d3594583") | |
350 | (revision "1")) | |
351 | (package | |
352 | (name "vim-neosnippet") | |
353 | (version (string-append "4.2-" revision "." (string-take commit 7))) | |
354 | (source | |
355 | (origin | |
356 | (method git-fetch) | |
357 | (uri (git-reference | |
358 | (url "https://github.com/Shougo/neosnippet.vim/") | |
359 | (commit commit))) | |
360 | (file-name (string-append name "-" version "-checkout")) | |
361 | (sha256 | |
362 | (base32 | |
363 | "0k80syscmpnj38ks1fq02ds59g0r4jlg9ll7z4qc048mgi35alw5")))) | |
364 | (build-system gnu-build-system) | |
365 | (arguments | |
366 | `(#:tests? #f | |
367 | #:phases | |
368 | (modify-phases %standard-phases | |
369 | (delete 'configure) | |
370 | (delete 'build) | |
371 | (replace 'install | |
372 | (lambda* (#:key outputs #:allow-other-keys) | |
373 | (let* ((out (assoc-ref outputs "out")) | |
374 | (vimfiles (string-append out "/share/vim/vimfiles")) | |
375 | (autoload (string-append vimfiles "/autoload")) | |
376 | (doc (string-append vimfiles "/doc")) | |
377 | (ftdetect (string-append vimfiles "/ftdetect")) | |
378 | (ftplugin (string-append vimfiles "/ftplugin")) | |
379 | (indent (string-append vimfiles "/indent")) | |
380 | (plugin (string-append vimfiles "/plugin")) | |
381 | (rplugin (string-append vimfiles "/rplugin")) | |
382 | (syntax (string-append vimfiles "/syntax"))) | |
383 | (copy-recursively "autoload" autoload) | |
384 | (copy-recursively "doc" doc) | |
385 | (copy-recursively "ftdetect" ftdetect) | |
386 | (copy-recursively "ftplugin" ftplugin) | |
387 | (copy-recursively "indent" indent) | |
388 | (copy-recursively "plugin" plugin) | |
389 | (copy-recursively "rplugin" rplugin) | |
390 | (copy-recursively "syntax" syntax) | |
391 | #t)))))) | |
392 | (synopsis "Snippet support for Vim") | |
393 | (description | |
394 | "@code{neosnippet}, is a plugin for Vim which adds snippet support to Vim. | |
395 | Snippets are small templates for commonly used code that you can fill in on | |
396 | the fly. To use snippets can increase your productivity in Vim a lot. | |
397 | The functionality of this plug-in is quite similar to plug-ins like | |
398 | @code{snipMate.vim} or @code{snippetsEmu.vim}. But since you can choose | |
399 | snippets with the neocomplcache / neocomplete interface, you might have less | |
400 | trouble using them, because you do not have to remember each snippet name.") | |
401 | (home-page "https://github.com/Shougo/neosnippet.vim/") | |
402 | (license license:expat)))) | |
403 | ||
843b19ca | 404 | (define-public vim-scheme |
405 | (let ((commit "93827987c10f2d5dc519166a761f219204926d5f") | |
406 | (revision "1")) | |
407 | (package | |
408 | (name "vim-scheme") | |
409 | (version (string-append "0.0.0-" revision "." (string-take commit 7))) | |
410 | (source | |
411 | (origin | |
412 | (method git-fetch) | |
413 | (uri (git-reference | |
414 | (url "http://git.foldling.org/vim-scheme.git") | |
415 | (commit commit))) | |
416 | (file-name (string-append name "-" version "-checkout")) | |
417 | (sha256 | |
418 | (base32 | |
419 | "1ynjr1109dxgj0lz261gmzz3wf5ap1m6j6hnvl3lcyv66a4y8pjv")))) | |
420 | (build-system gnu-build-system) | |
421 | (arguments | |
422 | `(#:tests? #f | |
423 | #:phases | |
424 | (modify-phases %standard-phases | |
425 | (delete 'configure) | |
426 | (delete 'build) | |
427 | (replace 'install | |
428 | (lambda* (#:key outputs #:allow-other-keys) | |
429 | (let* ((out (assoc-ref outputs "out")) | |
430 | (vimfiles (string-append out "/share/vim/vimfiles")) | |
431 | (after (string-append vimfiles "/after")) | |
432 | (syntax (string-append vimfiles "/syntax")) | |
433 | (ftplugin (string-append vimfiles "/ftplugin"))) | |
434 | (copy-recursively "after" after) | |
435 | (copy-recursively "ftplugin" ftplugin) | |
436 | (copy-recursively "syntax" syntax) | |
437 | #t)))))) | |
438 | (synopsis "Scheme syntax for Vim") | |
439 | (description | |
440 | "@code{vim-scheme} provides Scheme support for Vim (R7RS and CHICKEN).") | |
441 | (home-page "http://foldling.org/git/vim-scheme.git/") | |
442 | (license license:public-domain)))) | |
443 | ||
a4c95372 | 444 | (define-public vim-luna |
445 | (let ((commit "633619953dcf8577168e255230f96b05f28d6371") | |
446 | (revision "1")) | |
447 | (package | |
448 | (name "vim-luna") | |
449 | (version (string-append "0.0.0-" revision "." (string-take commit 7))) | |
450 | (source | |
451 | (origin | |
452 | (method git-fetch) | |
453 | (uri (git-reference | |
454 | (url "https://github.com/notpratheek/vim-luna") | |
455 | (commit commit))) | |
456 | (file-name (string-append name "-" version "-checkout")) | |
457 | (sha256 | |
458 | (base32 | |
459 | "0ka3qbhsh8lix1vyj4678j7dnchkd8khhirrnn3aylxxf8fpqyg8")))) | |
460 | (build-system gnu-build-system) | |
461 | (arguments | |
462 | `(#:tests? #f | |
463 | #:phases | |
464 | (modify-phases %standard-phases | |
465 | (delete 'configure) | |
466 | (delete 'build) | |
467 | (replace 'install | |
468 | (lambda* (#:key outputs #:allow-other-keys) | |
469 | (let* ((out (assoc-ref outputs "out")) | |
470 | (vimfiles (string-append out "/share/vim/vimfiles")) | |
471 | (colors (string-append vimfiles "/colors"))) | |
472 | (copy-recursively "colors" colors) | |
473 | #t)))))) | |
474 | (synopsis "Dark color theme for Vim") | |
475 | (description | |
476 | "@code{vim-luna} is a dark color theme for Vim.") | |
477 | (home-page "https://github.com/notpratheek/vim-luna") | |
478 | (license license:expat)))) | |
479 | ||
25340002 | 480 | ;; There are no tarball releases. |
481 | (define-public vim-context-filetype | |
482 | (let ((commit "5e85f8cae26806f391aefe2661791a6de53bcea2") | |
483 | (revision "1")) | |
484 | (package | |
485 | (name "vim-context-filetype") | |
486 | (version (string-append "0.0.0-" revision "." (string-take commit 7))) | |
487 | (source | |
488 | (origin | |
489 | (method git-fetch) | |
490 | (uri (git-reference | |
491 | (url "https://github.com/Shougo/context_filetype.vim") | |
492 | (commit commit))) | |
493 | (file-name (string-append name "-" version "-checkout")) | |
494 | (sha256 | |
495 | (base32 | |
496 | "0alvrfhmd91zkd9h83s8wvgyq4iakcf6rybsyjd369qbgpcqky89")))) | |
497 | (build-system gnu-build-system) | |
498 | (arguments | |
499 | `(#:tests? #f | |
500 | #:phases | |
501 | (modify-phases %standard-phases | |
502 | (delete 'configure) | |
503 | (delete 'build) | |
504 | (replace 'install | |
505 | (lambda* (#:key outputs #:allow-other-keys) | |
506 | (let* ((out (assoc-ref outputs "out")) | |
507 | (vimfiles (string-append out "/share/vim/vimfiles")) | |
508 | (doc (string-append vimfiles "/doc")) | |
509 | (autoload (string-append vimfiles "/autoload"))) | |
510 | (copy-recursively "doc" doc) | |
511 | (copy-recursively "autoload" autoload) | |
512 | #t)))))) | |
513 | (synopsis "Context filetype library for Vim") | |
514 | (description | |
515 | "@code{vim-context-filetype} is context filetype library for Vim script.") | |
516 | (home-page "https://github.com/Shougo/context_filetype.vim") | |
517 | (license license:expat)))) ; ??? check again | |
518 | ||
aad2dbfb | 519 | (define-public vim-fugitive |
261348e2 EF |
520 | (package |
521 | (name "vim-fugitive") | |
504b9ba7 | 522 | (version "3.2") |
261348e2 EF |
523 | (source |
524 | (origin | |
525 | (method git-fetch) | |
526 | (uri (git-reference | |
527 | (url "https://github.com/tpope/vim-fugitive.git") | |
528 | (commit (string-append "v" version)))) | |
529 | (file-name (git-file-name name version)) | |
530 | (sha256 | |
531 | (base32 | |
504b9ba7 | 532 | "1jbn5jxadccmcz01j94d0i1bp74cixr0fpxxf1h0aqdf1ljk3d7n")))) |
261348e2 EF |
533 | (build-system gnu-build-system) |
534 | (arguments | |
535 | '(#:tests? #f | |
536 | #:phases | |
537 | (modify-phases %standard-phases | |
538 | (delete 'configure) | |
539 | (delete 'build) | |
540 | (replace 'install | |
541 | (lambda* (#:key outputs #:allow-other-keys) | |
542 | (let* ((out (assoc-ref outputs "out")) | |
543 | (vimfiles (string-append out "/share/vim/vimfiles")) | |
fb0b6456 | 544 | (autoload (string-append vimfiles "/autoload")) |
f7a8571b | 545 | (doc (string-append vimfiles "/doc")) |
fb0b6456 | 546 | (ftdetect (string-append vimfiles "/ftdetect")) |
f7a8571b EF |
547 | (plugin (string-append vimfiles "/plugin")) |
548 | (syntax (string-append vimfiles "/syntax"))) | |
fb0b6456 | 549 | (copy-recursively "autoload" autoload) |
261348e2 | 550 | (copy-recursively "doc" doc) |
fb0b6456 | 551 | (copy-recursively "ftdetect" ftdetect) |
261348e2 | 552 | (copy-recursively "plugin" plugin) |
f7a8571b | 553 | (copy-recursively "syntax" syntax) |
261348e2 EF |
554 | #t)))))) |
555 | (home-page "https://github.com/tpope/vim-fugitive") | |
556 | (synopsis "Vim plugin to work with Git") | |
557 | (description "Vim-fugitive is a wrapper for Vim that complements the | |
aad2dbfb EF |
558 | command window, where you can stage and review your changes before the next |
559 | commit or run any Git arbitrary command.") | |
261348e2 | 560 | (license license:vim))) ; distributed under the same license as vim |
aad2dbfb | 561 | |
7ffcf5c5 | 562 | (define-public vim-airline |
563 | (package | |
564 | (name "vim-airline") | |
5d64c1b4 | 565 | (version "0.11") |
7ffcf5c5 | 566 | (source |
567 | (origin | |
35a7e574 EF |
568 | (method git-fetch) |
569 | (uri (git-reference | |
570 | (url "https://github.com/vim-airline/vim-airline") | |
571 | (commit (string-append "v" version)))) | |
572 | (file-name (git-file-name name version)) | |
7ffcf5c5 | 573 | (sha256 |
574 | (base32 | |
5d64c1b4 | 575 | "1aksmr73648pvyc75pfdz28k2d4ky52rn7xiwcv7lz87q3vqld7k")))) |
7ffcf5c5 | 576 | (build-system gnu-build-system) |
577 | (arguments | |
578 | `(#:tests? #f | |
579 | #:phases | |
580 | (modify-phases %standard-phases | |
581 | (delete 'configure) | |
582 | (delete 'build) | |
583 | (replace 'install | |
584 | (lambda* (#:key outputs #:allow-other-keys) | |
585 | (let* ((out (assoc-ref outputs "out")) | |
586 | (vimfiles (string-append out "/share/vim/vimfiles")) | |
587 | (autoload (string-append vimfiles "/autoload")) | |
588 | (doc (string-append vimfiles "/doc")) | |
589 | (t (string-append vimfiles "/t")) | |
590 | (plugin (string-append vimfiles "/plugin"))) | |
591 | (copy-recursively "autoload" autoload) | |
592 | (copy-recursively "doc" doc) | |
593 | (copy-recursively "plugin" plugin) | |
594 | (copy-recursively "t" t) | |
595 | #t)))))) | |
596 | (synopsis "Statusline for Vim") | |
597 | (description | |
598 | "@code{vim-airline} is an extensible statusline for Vim. | |
599 | It can be extended and costumized with themes, works with unicode fonts | |
600 | and powerline symbols, etc.") | |
601 | (home-page "https://github.com/vim-airline/vim-airline") | |
602 | (license license:expat))) | |
603 | ||
b02a141f | 604 | ;; There are no tarball releases. |
605 | (define-public vim-airline-themes | |
deae64ce EF |
606 | (let ((commit "e6f233231b232b6027cde6aebeeb18d9138e5324") |
607 | (revision "2")) | |
b02a141f | 608 | (package |
609 | (name "vim-airline-themes") | |
deae64ce | 610 | (version (git-version "0.0.0" revision commit)) |
b02a141f | 611 | (source |
612 | (origin | |
613 | (method git-fetch) | |
614 | (uri (git-reference | |
615 | (url "https://github.com/vim-airline/vim-airline-themes") | |
616 | (commit commit))) | |
deae64ce | 617 | (file-name (git-file-name name version)) |
b02a141f | 618 | (sha256 |
619 | (base32 | |
deae64ce | 620 | "1sb7nb7j7bz0pv1c9bgdy0smhr0jk2b1vbdv9yzghg5lrknpsbr6")))) |
b02a141f | 621 | (build-system gnu-build-system) |
622 | (arguments | |
623 | `(#:tests? #f | |
624 | #:phases | |
625 | (modify-phases %standard-phases | |
626 | (delete 'configure) | |
627 | (delete 'build) | |
628 | (replace 'install | |
629 | (lambda* (#:key outputs #:allow-other-keys) | |
630 | (let* ((out (assoc-ref outputs "out")) | |
631 | (vimfiles (string-append out "/share/vim/vimfiles")) | |
632 | (doc (string-append vimfiles "/doc")) | |
633 | (plugin (string-append vimfiles "/plugin")) | |
634 | (autoload (string-append vimfiles "/autoload"))) | |
635 | (copy-recursively "doc" doc) | |
636 | (copy-recursively "autoload" autoload) | |
637 | (copy-recursively "plugin" plugin) | |
638 | #t)))))) | |
639 | (synopsis "Collection of themes for Vim-airline") | |
640 | (description | |
641 | "@code{vim-airline-themes} is a collection of themes for @code{vim-airline}.") | |
642 | (home-page "https://github.com/vim-airline/vim-airline-themes") | |
643 | (license license:expat)))) | |
644 | ||
86db4486 | 645 | (define-public vim-syntastic |
646 | (package | |
647 | (name "vim-syntastic") | |
42521ab2 | 648 | (version "3.10.0") |
86db4486 | 649 | (source |
650 | (origin | |
c71cc133 EF |
651 | (method git-fetch) |
652 | (uri (git-reference | |
653 | (url "https://github.com/vim-syntastic/syntastic") | |
654 | (commit version))) | |
655 | (file-name (git-file-name name version)) | |
86db4486 | 656 | (sha256 |
42521ab2 | 657 | (base32 "0j91f72jaz1s6aw1hpjiz30vk2ds2aqd9gisk91grsldy6nz6hhz")))) |
86db4486 | 658 | (build-system gnu-build-system) |
659 | (arguments | |
660 | `(#:tests? #f | |
661 | #:phases | |
662 | (modify-phases %standard-phases | |
663 | (delete 'configure) | |
664 | (delete 'build) | |
665 | (replace 'install | |
666 | (lambda* (#:key outputs #:allow-other-keys) | |
667 | (let* ((out (assoc-ref outputs "out")) | |
668 | (vimfiles (string-append out "/share/vim/vimfiles")) | |
669 | (doc (string-append vimfiles "/doc")) | |
670 | (plugin (string-append vimfiles "/plugin")) | |
671 | (autoload (string-append vimfiles "/autoload")) | |
672 | (syntax-checkers (string-append vimfiles "/syntax_checkers"))) | |
673 | (copy-recursively "doc" doc) | |
674 | (copy-recursively "autoload" autoload) | |
675 | (copy-recursively "plugin" plugin) | |
676 | (copy-recursively "syntax_checkers" syntax-checkers) | |
677 | #t)))))) | |
678 | (synopsis "Syntax checking plugin for Vim") | |
679 | (description | |
680 | "Vim-syntastic is a syntax checking plugin for Vim. It runs files through | |
681 | external syntax checkers and displays any resulting errors to the user. This | |
682 | can be done on demand, or automatically as files are saved. If syntax errors | |
683 | are detected, the user is notified.") | |
684 | (home-page "https://github.com/vim-syntastic/syntastic") | |
685 | (license license:wtfpl2))) | |
686 | ||
de3ed0b4 EF |
687 | (define-public editorconfig-vim |
688 | (package | |
689 | (name "editorconfig-vim") | |
690 | (version "0.3.3") | |
691 | (source | |
692 | (origin | |
693 | (method git-fetch) | |
694 | (uri (git-reference | |
695 | (url "https://github.com/editorconfig/editorconfig-vim.git") | |
696 | (commit (string-append "v" version)))) | |
697 | (file-name (git-file-name name version)) | |
698 | (sha256 | |
699 | (base32 | |
700 | "0vssfl1wjq0mv0p30c3dszwrh4yy90vwxmmdgqaxf5rykik7bdfd")) | |
701 | (modules '((guix build utils))) | |
702 | (snippet | |
703 | '(begin | |
704 | (delete-file-recursively "plugin/editorconfig-core-py") #t)))) | |
705 | (build-system gnu-build-system) | |
706 | (arguments | |
707 | '(#:tests? #f ; tests require ruby and plugin-test repository | |
708 | #:phases | |
709 | (modify-phases %standard-phases | |
710 | (delete 'configure) | |
711 | (delete 'build) | |
712 | (add-after 'unpack 'patch-editorconfig-path | |
713 | (lambda* (#:key inputs #:allow-other-keys) | |
714 | (let ((editorconfig (assoc-ref inputs "editorconfig-core"))) | |
715 | (substitute* "plugin/editorconfig.vim" | |
716 | (("/opt") editorconfig)) | |
717 | #t))) | |
718 | (replace 'install | |
719 | (lambda* (#:key outputs #:allow-other-keys) | |
720 | (let* ((out (assoc-ref outputs "out")) | |
721 | (vimfiles (string-append out "/share/vim/vimfiles")) | |
722 | (doc (string-append vimfiles "/doc")) | |
723 | (plugin (string-append vimfiles "/plugin")) | |
724 | (autoload (string-append vimfiles "/autoload"))) | |
725 | (copy-recursively "doc" doc) | |
726 | (copy-recursively "autoload" autoload) | |
727 | (copy-recursively "plugin" plugin) | |
728 | #t)))))) | |
729 | (inputs | |
730 | `(("editorconfig-core" ,editorconfig-core-c))) | |
731 | (home-page "https://editorconfig.org/") | |
732 | (synopsis "EditorConfig plugin for Vim") | |
733 | (description "EditorConfig makes it easy to maintain the correct coding | |
734 | style when switching between different text editors and between different | |
735 | projects. The EditorConfig project maintains a file format and plugins for | |
736 | various text editors which allow this file format to be read and used by those | |
737 | editors.") | |
738 | (license license:bsd-2))) | |
739 | ||
bc84735d | 740 | (define-public neovim-syntastic |
741 | (package | |
742 | (inherit vim-syntastic) | |
743 | (name "neovim-syntastic") | |
744 | (arguments | |
745 | `(#:tests? #f | |
746 | #:phases | |
747 | (modify-phases %standard-phases | |
748 | (delete 'configure) | |
749 | (delete 'build) | |
750 | (replace 'install | |
751 | (lambda* (#:key outputs #:allow-other-keys) | |
752 | (let* ((out (assoc-ref outputs "out")) | |
753 | (vimfiles (string-append out "/share/nvim/site")) | |
754 | (doc (string-append vimfiles "/doc")) | |
755 | (plugin (string-append vimfiles "/plugin")) | |
756 | (autoload (string-append vimfiles "/autoload")) | |
757 | (syntax-checkers (string-append vimfiles "/syntax_checkers"))) | |
758 | (copy-recursively "doc" doc) | |
759 | (copy-recursively "autoload" autoload) | |
760 | (copy-recursively "plugin" plugin) | |
761 | (copy-recursively "syntax_checkers" syntax-checkers) | |
762 | #t)))))) | |
763 | (synopsis "Syntax checking plugin for Neovim") | |
764 | (description | |
765 | "Vim-syntastic is a syntax checking plugin for Neovim. It runs files through | |
766 | external syntax checkers and displays any resulting errors to the user. This | |
767 | can be done on demand, or automatically as files are saved. If syntax errors | |
768 | are detected, the user is notified."))) | |
769 | ||
9b11eee9 RW |
770 | (define-public neovim |
771 | (package | |
772 | (name "neovim") | |
b6c40df6 | 773 | (version "0.4.3") |
9b11eee9 RW |
774 | (source |
775 | (origin | |
c3ebaec5 H |
776 | (method git-fetch) |
777 | (uri (git-reference | |
778 | (url "https://github.com/neovim/neovim") | |
779 | (commit (string-append "v" version)))) | |
780 | (file-name (git-file-name name version)) | |
9b11eee9 | 781 | (sha256 |
b6c40df6 | 782 | (base32 "03p7pic7hw9yxxv7fbgls1f42apx3lik2k6mpaz1a109ngyc5kaj")))) |
9b11eee9 RW |
783 | (build-system cmake-build-system) |
784 | (arguments | |
785 | `(#:modules ((srfi srfi-26) | |
786 | (guix build cmake-build-system) | |
787 | (guix build utils)) | |
4168e3fa | 788 | #:configure-flags '("-DPREFER_LUA:BOOL=YES") |
9b11eee9 RW |
789 | #:phases |
790 | (modify-phases %standard-phases | |
791 | (add-after 'unpack 'set-lua-paths | |
792 | (lambda* (#:key inputs #:allow-other-keys) | |
9abfbd79 | 793 | (let* ((lua-version "5.1") |
9b11eee9 RW |
794 | (lua-cpath-spec |
795 | (lambda (prefix) | |
796 | (let ((path (string-append prefix "/lib/lua/" lua-version))) | |
797 | (string-append path "/?.so;" path "/?/?.so")))) | |
798 | (lua-path-spec | |
799 | (lambda (prefix) | |
800 | (let ((path (string-append prefix "/share/lua/" lua-version))) | |
801 | (string-append path "/?.lua;" path "/?/?.lua")))) | |
802 | (lua-inputs (map (cute assoc-ref %build-inputs <>) | |
803 | '("lua" | |
518fd3b6 | 804 | "lua-luv" |
9b11eee9 RW |
805 | "lua-lpeg" |
806 | "lua-bitop" | |
807 | "lua-libmpack")))) | |
808 | (setenv "LUA_PATH" | |
809 | (string-join (map lua-path-spec lua-inputs) ";")) | |
810 | (setenv "LUA_CPATH" | |
811 | (string-join (map lua-cpath-spec lua-inputs) ";")) | |
9fbd0b17 JL |
812 | #t))) |
813 | (add-after 'unpack 'prevent-embedding-gcc-store-path | |
814 | (lambda _ | |
815 | ;; nvim remembers its build options, including the compiler with | |
816 | ;; its complete path. This adds gcc to the closure of nvim, which | |
817 | ;; doubles its size. We remove the refirence here. | |
818 | (substitute* "cmake/GetCompileFlags.cmake" | |
819 | (("\\$\\{CMAKE_C_COMPILER\\}") "/gnu/store/.../bin/gcc")) | |
820 | #t))))) | |
9b11eee9 RW |
821 | (inputs |
822 | `(("libuv" ,libuv) | |
823 | ("msgpack" ,msgpack) | |
824 | ("libtermkey" ,libtermkey) | |
825 | ("libvterm" ,libvterm) | |
826 | ("unibilium" ,unibilium) | |
827 | ("jemalloc" ,jemalloc) | |
828 | ("libiconv" ,libiconv) | |
9abfbd79 | 829 | ("lua" ,lua-5.1) |
518fd3b6 | 830 | ("lua-luv" ,lua5.1-luv) |
9abfbd79 H |
831 | ("lua-lpeg" ,lua5.1-lpeg) |
832 | ("lua-bitop" ,lua5.1-bitop) | |
833 | ("lua-libmpack" ,lua5.1-libmpack))) | |
9b11eee9 RW |
834 | (native-inputs |
835 | `(("pkg-config" ,pkg-config) | |
836 | ("gettext" ,gettext-minimal) | |
837 | ("gperf" ,gperf))) | |
52bc70e4 | 838 | (home-page "https://neovim.io") |
9b11eee9 RW |
839 | (synopsis "Fork of vim focused on extensibility and agility") |
840 | (description "Neovim is a project that seeks to aggressively | |
841 | refactor Vim in order to: | |
842 | ||
843 | @itemize | |
844 | @item Simplify maintenance and encourage contributions | |
845 | @item Split the work between multiple developers | |
846 | @item Enable advanced external UIs without modifications to the core | |
847 | @item Improve extensibility with a new plugin architecture | |
848 | @end itemize\n") | |
849 | ;; Neovim is licensed under the terms of the Apache 2.0 license, | |
850 | ;; except for parts that were contributed under the Vim license. | |
851 | (license (list license:asl2.0 license:vim)))) | |
852 | ||
65dccb3a EF |
853 | (define-public vifm |
854 | (package | |
855 | (name "vifm") | |
b4bd0d86 | 856 | (version "0.10.1") |
65dccb3a EF |
857 | (source |
858 | (origin | |
859 | (method url-fetch) | |
1dbd3432 EF |
860 | (uri (list |
861 | (string-append "https://github.com/vifm/vifm/releases/download/v" | |
862 | version "/vifm-" version ".tar.bz2") | |
863 | (string-append "https://sourceforge.net/projects/vifm/files/vifm/" | |
864 | "vifm-" version ".tar.bz2"))) | |
65dccb3a EF |
865 | (sha256 |
866 | (base32 | |
b4bd0d86 | 867 | "0fyhxh7ndjn8fyjhj14ymkr3pjcs3k1xbs43g7xvvq85vdb6y04r")))) |
65dccb3a EF |
868 | (build-system gnu-build-system) |
869 | (arguments | |
513a66c9 EF |
870 | '(#:configure-flags '("--disable-build-timestamp") |
871 | #:phases | |
872 | (modify-phases %standard-phases | |
873 | (add-after 'patch-source-shebangs 'patch-test-shebangs | |
874 | (lambda _ | |
875 | (substitute* (cons* "src/background.c" | |
876 | "src/cfg/config.c" | |
877 | (find-files "tests" "\\.c$")) | |
878 | (("/bin/sh") (which "sh")) | |
879 | (("/bin/bash") (which "bash"))) | |
880 | ;; This test segfaults | |
881 | (substitute* "tests/Makefile" | |
882 | (("misc") "")) | |
883 | #t)) | |
884 | (add-after 'install 'install-vim-plugin-files | |
885 | (lambda* (#:key outputs #:allow-other-keys) | |
886 | (let* ((out (assoc-ref outputs "out")) | |
887 | (vifm (string-append out "/share/vifm")) | |
888 | (vimfiles (string-append out "/share/vim/vimfiles"))) | |
889 | (copy-recursively (string-append vifm "/colors") | |
890 | (string-append vimfiles "/colors")) | |
891 | (copy-recursively (string-append vifm "/vim") | |
892 | vimfiles) | |
893 | (delete-file-recursively (string-append vifm "/colors")) | |
894 | (delete-file-recursively (string-append vifm "/vim"))) | |
895 | #t))))) | |
65dccb3a | 896 | (native-inputs |
4f34e0db | 897 | `(("groff" ,groff))) ; for the documentation |
65dccb3a EF |
898 | (inputs |
899 | `(("libx11" ,libx11) | |
4f34e0db EF |
900 | ("ncurses" ,ncurses) |
901 | ("perl" ,perl))) | |
902 | (home-page "https://vifm.info/") | |
65dccb3a EF |
903 | (synopsis "Flexible vi-like file manager using ncurses") |
904 | (description "Vifm is a file manager providing a @command{vi}-like usage | |
905 | experience. It has similar keybindings and modes (e.g. normal, command line, | |
906 | visual). The interface uses ncurses, thus vifm can be used in text-only | |
907 | environments. It supports a wide range of features, some of which are known | |
908 | from the @command{vi}-editor: | |
909 | @enumerate | |
910 | @item utf8 support | |
911 | @item user mappings (almost like in @code{vi}) | |
912 | @item ranges in command | |
913 | @item line commands | |
914 | @item user defined commands (with support for ranges) | |
915 | @item registers | |
916 | @item operation undoing/redoing | |
917 | @item fuse file systems support | |
918 | @item trash | |
919 | @item multiple files renaming | |
920 | @item support of filename modifiers | |
921 | @item colorschemes support | |
922 | @item file name color according to file type | |
923 | @item path specific colorscheme customization | |
924 | @item bookmarks | |
925 | @item operation backgrounding | |
926 | @item customizable file viewers | |
927 | @item handy @code{less}-like preview mode | |
928 | @item filtering out and searching for files using regular expressions | |
929 | @item one or two panes view | |
930 | @end enumerate | |
931 | With the package comes a plugin to use vifm as a vim file selector.") | |
932 | (license license:gpl2+))) | |
24d32e67 JL |
933 | |
934 | (define-public python-pynvim | |
935 | (package | |
936 | (name "python-pynvim") | |
937 | (version "0.3.2") | |
938 | (source (origin | |
939 | (method url-fetch) | |
940 | (uri (pypi-uri "pynvim" version)) | |
941 | (sha256 | |
942 | (base32 | |
943 | "01dybk4vs452pljn1q3il5z2sd313ki0lgiglc0xmjc6wp290r6g")))) | |
944 | (build-system python-build-system) | |
945 | (propagated-inputs | |
946 | `(("python-greenlet" ,python-greenlet) | |
947 | ("python-msgpack" ,python-msgpack))) | |
948 | (arguments | |
949 | `(#:tests? #f)) | |
950 | (home-page "https://github.com/neovim/pynvim") | |
951 | (synopsis "Python client and plugin host for neovim") | |
952 | (description "Pynvim implements support for python plugins in neovim. It | |
953 | also works as a library for connecting to and scripting neovim processes | |
954 | through its msgpack-rpc API.") | |
955 | (license license:asl2.0))) | |
956 | ||
957 | (define-public python2-pynvim | |
958 | (package-with-python2 python-pynvim)) | |
a947ade6 EF |
959 | |
960 | (define-public vim-guix-vim | |
961 | (package | |
962 | (name "vim-guix-vim") | |
963 | (version "0.1") | |
964 | (source (origin | |
965 | (method git-fetch) | |
966 | (uri (git-reference | |
967 | (url "https://gitlab.com/Efraim/guix.vim") | |
968 | (commit version))) | |
969 | (file-name (git-file-name name version)) | |
970 | (sha256 | |
971 | (base32 | |
972 | "1f8h8m96fqh3f9hy87spgh9kdqzyxl11n9s3rywvyq5xhn489bnk")))) | |
973 | (build-system gnu-build-system) | |
974 | (arguments | |
975 | '(#:tests? #f | |
976 | #:phases | |
977 | (modify-phases %standard-phases | |
978 | (delete 'configure) | |
979 | (delete 'build) | |
980 | (replace 'install | |
981 | (lambda* (#:key outputs #:allow-other-keys) | |
982 | (let* ((out (assoc-ref outputs "out")) | |
983 | (vimfiles (string-append out "/share/vim/vimfiles"))) | |
984 | (for-each | |
985 | (lambda (dir) | |
986 | (copy-recursively dir (string-append vimfiles "/" dir))) | |
987 | '("compiler" "doc" "indent" "ftdetect" "ftplugin" "syntax")) | |
988 | #t)))))) | |
989 | (home-page "https://gitlab.com/Efraim/guix.vim") | |
990 | (synopsis "Guix integration in Vim") | |
991 | (description "This package provides support for GNU Guix in Vim.") | |
992 | (license license:vim))) |