guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: neovim: Remove unneeded reference.


From: guix-commits
Subject: 01/01: gnu: neovim: Remove unneeded reference.
Date: Thu, 17 Oct 2019 15:13:14 -0400 (EDT)

roptat pushed a commit to branch master
in repository guix.

commit 9fbd0b17691dbe5f9ef76c5def4c1588bccd4a53
Author: Julien Lepiller <address@hidden>
Date:   Thu Oct 17 20:17:12 2019 +0200

    gnu: neovim: Remove unneeded reference.
    
    gnu/packages/vim.scm (neovim)[arguments]: Add a phase to remove a
    reference to the compiler.
---
 gnu/packages/vim.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm
index 9515b17..63bd503 100644
--- a/gnu/packages/vim.scm
+++ b/gnu/packages/vim.scm
@@ -775,7 +775,15 @@ are detected, the user is notified.")))
                        (string-join (map lua-path-spec lua-inputs) ";"))
                (setenv "LUA_CPATH"
                        (string-join (map lua-cpath-spec lua-inputs) ";"))
-               #t))))))
+               #t)))
+         (add-after 'unpack 'prevent-embedding-gcc-store-path
+           (lambda _
+             ;; nvim remembers its build options, including the compiler with
+             ;; its complete path.  This adds gcc to the closure of nvim, which
+             ;; doubles its size.  We remove the refirence here.
+             (substitute* "cmake/GetCompileFlags.cmake"
+               (("\\$\\{CMAKE_C_COMPILER\\}") "/gnu/store/.../bin/gcc"))
+             #t)))))
     (inputs
      `(("libuv" ,libuv)
        ("msgpack" ,msgpack)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]