1 { lib, stdenv, rtpPath ? "share/kak/autoload/plugins" }:
3 buildKakounePlugin = attrs@{
4 name ? "${attrs.pname}-${attrs.version}",
5 namePrefix ? "kakplugin-",
12 path ? lib.getName name,
15 stdenv.mkDerivation ((builtins.removeAttrs attrs [ "namePrefix" "path" ]) // {
16 name = namePrefix + name;
21 target=$out/${rtpPath}/${path}
22 mkdir -p $out/${rtpPath}
29 buildKakounePluginFrom2Nix = attrs: buildKakounePlugin ({