nixpkgs/pkgs/top-level
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
..
agda-packages.nix agda-packages: add fla library at v0.1 2020-10-15 10:54:22 -06:00
aliases.nix Merge pull request #101369 from doronbehar/pkg/kdeApplications/qt515 2020-11-01 11:05:05 +01:00
all-packages.nix kakoune: rework plugin support 2020-11-01 14:35:49 +00:00
beam-packages.nix elixir_1_11: init at 1.11.0 2020-10-07 10:30:35 +02:00
config.nix
coq-packages.nix coqPackages.VST: init at 2.6 2020-10-05 16:39:26 +02:00
darwin-packages.nix
default.nix top-level: ignore unexpected args 2020-10-01 11:21:32 -07:00
dhall-packages.nix
dotnet-packages.nix dafny: use pinned z3 in the full closure 2020-10-24 22:24:40 +02:00
emacs-packages.nix
emscripten-packages.nix
haskell-packages.nix ghc: add alpha-1 release of version 9.0.1 2020-09-29 12:06:53 +02:00
haxe-packages.nix
impure.nix Revert "top-level: fix nix-shell eval w/nixUnstable" 2020-10-01 11:21:06 -07:00
java-packages.nix javaPackages: add upgraded packages 2020-10-22 10:11:36 +09:00
lua-packages.nix
make-tarball.nix
metrics.nix
ocaml-packages.nix ocamlPackages.mirage-block: init at 2.0.1 2020-10-27 22:00:51 +01:00
packages-config.nix
perl-packages.nix Merge pull request #102071 from zakame/contrib/perl-NetAsyncWebSocket 2020-10-30 16:43:05 +00:00
php-packages.nix php: Drop usage of isPhp73 and isPhp74 2020-10-11 20:10:58 +02:00
pure-packages.nix
python-packages.nix pythonPackages.toolz: create Python 2 package 2020-10-31 09:55:25 -07:00
release-alternatives.nix
release-cross.nix release*: Support nixpkgsArgs for all release-*.nix files 2020-09-11 18:22:01 +02:00
release-lib.nix
release-python.nix release*: Support nixpkgsArgs for all release-*.nix files 2020-09-11 18:22:01 +02:00
release-small.nix release*: Support nixpkgsArgs for all release-*.nix files 2020-09-11 18:22:01 +02:00
release.nix Disable the metrics job 2020-10-27 17:05:35 +01:00
ruby-packages.nix
splice.nix
stage.nix
static.nix Merge pull request #86223 from pikajude/darwin-static-eval 2020-09-30 23:44:18 +02:00
unix-tools.nix
wine-packages.nix