From 5c3b1a39b426eb79da4974c966874b8987adbb9a Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 19 Oct 2025 13:10:08 +0300 Subject: [PATCH] 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 Change-Id: Ib546f29ad95a6acdc3063c94aaa7eb839f50f254 --- gnu/packages/text-editors.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm index df502e80f003de6465d8017295b1bc16e676fcc5..46030e04e6f52e6e354aa9f8964d9fc97a0ab93c 100644 --- a/gnu/packages/text-editors.scm +++ b/gnu/packages/text-editors.scm @@ -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