nixpkgs-suyu/pkgs
Daniel Gorin 550389392a kakoune: rework plugin support
The previous implementation of plugin-support for the kakoune derivation
was based on generating, at build time, a `plugins.kak` file that would
source all .kak files in the list of plugins, and wrap the `kak` binary
in a script that would add some command-line arguments so that this
file gets loaded on start-up. The main problem with this approach
is that the plugins' code get executed *after* the user's configuration
file is loaded, so effectively one cannot automatically activate/configure
these plugins.

The idiomatic way of loading plugins is ensuring they end up installed
somwhere under `share/kak/autoload`. Because plugins are already being
packaged to have their code in `share/kak/autoload/plugins/<name-of-plugin>`,
we can obtain a derivation that includes the plugins simply by doing a
`symlinkJoin` of `kakoune-unwrapped` and all the requested plugins.

For this to work, we need to fix two issues:

  1. By default, kakoune makes `share/kak/autoload` a symbolic link to
     `share/kak/rc`, which contains all builtin definitions. We need
     to patch this to put the symlink under `share/kak/autoload/rc`, so that
     the join works.

  2. By default kakoune expects the `autoload` directory to be in
     `../share/kak/autoload` relative to the location of the `kak` binary.
     We need to set the `KAKOUNE_RUNTIME` to point the symlinked
     share/kak for this to work.
2020-11-01 14:35:49 +00:00
..
applications kakoune: rework plugin support 2020-11-01 14:35:49 +00:00
build-support buildFHSUserEnvBubblewrap: fix whitespace with root directories 2020-10-30 22:52:58 -07:00
common-updater scripts/mark-broken: improve 2020-10-30 23:11:36 -07:00
data Merge pull request #101369 from doronbehar/pkg/kdeApplications/qt515 2020-11-01 11:05:05 +01:00
desktops Revert "plasma5: mark broken with Qt >= 5.15" 2020-10-30 20:37:58 +02:00
development Merge pull request #102292 from r-ryantm/auto-update/flyway 2020-11-01 07:18:01 -05:00
games vkquake: 1.04.1 -> 1.05.0 2020-11-01 20:54:39 +08:00
misc vimPlugins: update 2020-10-31 09:58:43 -07:00
os-specific Merge pull request #102289 from r-ryantm/auto-update/fnotifystat 2020-11-01 07:17:41 -05:00
pkgs-lib pkgs-lib/tests/formats: improve message on failure 2020-10-19 21:46:08 +02:00
servers Merge pull request #102300 from arcnmx/prosody-migrator 2020-11-01 12:24:35 +01:00
shells Merge pull request #90322 from pasqui23/zplg2 2020-10-31 07:34:03 -07:00
stdenv Merge pull request #96318 from matthewbauer/provide-patchelf-in-native-stdenv 2020-10-30 13:32:13 -05:00
test Revert "Merge #101508: libraw: 0.20.0 -> 0.20.2" 2020-10-25 09:41:51 +01:00
tools Merge pull request #102298 from r-ryantm/auto-update/gnu-pw-mgr 2020-11-01 05:49:37 -08:00
top-level kakoune: rework plugin support 2020-11-01 14:35:49 +00:00