~ruther/guix-local

5c3b1a39b426eb79da4974c966874b8987adbb9a — Efraim Flashner 5 months ago f339961
gnu: kakoune: Wrap with perl.

* gnu/packages/text-editors.scm (kakoune)[arguments]: Add a phase to
wrap the binary with perl.
[inputs]: Add perl.

Co-authored-by: Ashvith Shetty <ashvithshetty10@gmail.com>
Change-Id: Ib546f29ad95a6acdc3063c94aaa7eb839f50f254
1 files changed, 6 insertions(+), 0 deletions(-)

M gnu/packages/text-editors.scm
M gnu/packages/text-editors.scm => gnu/packages/text-editors.scm +6 -0
@@ 439,8 439,14 @@ based command language.")
               (("if \\(m_shell.empty\\(\\)\\)" line)
                (string-append "m_shell = \"" (which "sh")
                               "\";\n        " line)))))
         (add-after 'install 'wrap-executable
           (lambda* (#:key inputs outputs #:allow-other-keys)
             (wrap-program (string-append (assoc-ref outputs "out") "/bin/kak")
              `("PATH" ":" prefix
                (,(dirname (search-input-file inputs "bin/perl")))))))
         (delete 'configure))))            ; no configure script
    (native-inputs (list pkg-config))
    (inputs (list perl))
    (synopsis "Vim-inspired code editor")
    (description
     "Kakoune is a code editor heavily inspired by Vim, as such most of its