GNU bug report logs - #75575
[PATCH] gnu: kakoune: Add search path

Previous Next

Package: guix-patches;

Reported by: ingar <at> onionmail.info

Date: Wed, 15 Jan 2025 07:13:02 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 75575 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#75575; Package guix-patches. (Wed, 15 Jan 2025 07:13:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to ingar <at> onionmail.info:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Wed, 15 Jan 2025 07:13:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: ingar <at> onionmail.info
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: kakoune: Add search path
Date: Wed, 15 Jan 2025 04:01:05 GMT
* gnu/packages/text-editors.scm (kakoune): Add KAKOUNE_RUNTIME to search
paths. This is needed to eg. package plugins, or to have a stable target
for the symlink inside `${userconf}/autoload` to `@{runtime}/autoload`
(see Kakoune manual).

Change-Id: I55a48696f20e13499206b573a9b07895250d791c
---
This is my first contribution... If I forgot any guidelines, let me know!
This patch would prepare the way for some kakoune plugin packages, but I'll
first consult the guix-devel mailing list to see if & how that is alright.
This patch should be nonetheless useful on its own.

 gnu/packages/text-editors.scm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm
index 1fde977dff..9bda9f61c6 100644
--- a/gnu/packages/text-editors.scm
+++ b/gnu/packages/text-editors.scm
@@ -366,6 +366,11 @@ (define-public kakoune
                                "\";\n        " line)))))
          (delete 'configure))))            ; no configure script
     (native-inputs (list pkg-config))
+    (native-search-paths
+     (list (search-path-specification
+            (variable "KAKOUNE_RUNTIME")
+            (separator #f) ;pretty sure kakoune can handle only 1 runtime dir
+            (files (list "share/kak")))))
     (synopsis "Vim-inspired code editor")
     (description
      "Kakoune is a code editor heavily inspired by Vim, as such most of its

base-commit: 21574796e98f897d86a0909e31fbb321ebb6e399
-- 
2.46.0




This bug report was last modified 83 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.