gnu: neovim: Fix #34616.

This fixes a segmentation fault in neovim, where an error return value
is passed in as a pointer.

* gnu/packages/vim.scm (neovim)[arguments](phases): Add 'patch-tic phase.
This commit is contained in:
Gábor Boskovits 2019-03-06 21:51:57 +01:00
parent 2702aa9136
commit 0a10abf73e
No known key found for this signature in database
GPG Key ID: 2506A96CCF630B21
1 changed files with 6 additions and 0 deletions

View File

@ -693,6 +693,12 @@ are detected, the user is notified.")))
#:configure-flags '("-DPREFER_LUA:BOOL=YES")
#:phases
(modify-phases %standard-phases
;; TODO: remove 'patch-tic on update
;; see: https://github.com/neovim/neovim/issues/9687
(add-after 'unpack 'patch-tic
(lambda _
(substitute* "src/nvim/tui/tui.c"
(("value != NULL") "value != NULL && value != (char *)-1"))))
(add-after 'unpack 'set-lua-paths
(lambda* (#:key inputs #:allow-other-keys)
(let* ((lua-version "5.2")