diff options
author | Jason Felice <jason.m.felice@gmail.com> | 2019-09-23 12:14:08 -0400 |
---|---|---|
committer | Jason Felice <jason.m.felice@gmail.com> | 2019-10-29 21:45:48 -0400 |
commit | b4b5dd14a13ea1ee70dd106f476670cd63c5b3c4 (patch) | |
tree | 8a87d30d01b65140e7da0b99fc3f450c26efc262 /pkgs/applications/editors/kakoune | |
parent | 14f812aeef754760e7b1f87f7b7c9a887cbf7765 (diff) |
kakounePlugins.kak-plumb: init at 0.1.1
Diffstat (limited to 'pkgs/applications/editors/kakoune')
-rw-r--r-- | pkgs/applications/editors/kakoune/plugins/default.nix | 1 | ||||
-rw-r--r-- | pkgs/applications/editors/kakoune/plugins/kak-plumb.nix | 31 |
2 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/applications/editors/kakoune/plugins/default.nix b/pkgs/applications/editors/kakoune/plugins/default.nix index 61e2b3a58459..4e92887bccb3 100644 --- a/pkgs/applications/editors/kakoune/plugins/default.nix +++ b/pkgs/applications/editors/kakoune/plugins/default.nix @@ -7,6 +7,7 @@ kak-auto-pairs = pkgs.callPackage ./kak-auto-pairs.nix { }; kak-buffers = pkgs.callPackage ./kak-buffers.nix { }; kak-fzf = pkgs.callPackage ./kak-fzf.nix { }; + kak-plumb = pkgs.callPackage ./kak-plumb.nix { }; kak-powerline = pkgs.callPackage ./kak-powerline.nix { }; kak-vertical-selection = pkgs.callPackage ./kak-vertical-selection.nix { }; } diff --git a/pkgs/applications/editors/kakoune/plugins/kak-plumb.nix b/pkgs/applications/editors/kakoune/plugins/kak-plumb.nix new file mode 100644 index 000000000000..7abef9305310 --- /dev/null +++ b/pkgs/applications/editors/kakoune/plugins/kak-plumb.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchFromGitHub, kakoune-unwrapped, plan9port, ... }: + +stdenv.mkDerivation rec { + pname = "kak-plumb"; + version = "0.1.1"; + + src = fetchFromGitHub { + owner = "eraserhd"; + repo = "kak-plumb"; + rev = "v${version}"; + sha256 = "1rz6pr786slnf1a78m3sj09axr4d2lb5rg7sfa4mfg1zcjh06ps6"; + }; + + installPhase = '' + mkdir -p $out/bin $out/share/kak/autoload/plugins/ + substitute rc/plumb.kak $out/share/kak/autoload/plugins/plumb.kak \ + --replace '9 plumb' '${plan9port}/bin/9 plumb' + substitute edit-client $out/bin/edit-client \ + --replace '9 9p' '${plan9port}/bin/9 9p' \ + --replace 'kak -p' '${kakoune-unwrapped}/bin/kak -p' + chmod +x $out/bin/edit-client + ''; + + meta = with stdenv.lib; { + description = "Kakoune integration with the Plan 9 plumber"; + homepage = "https://github.com/eraserhd/kak-plumb"; + license = licenses.unlicense; + maintainers = with maintainers; [ eraserhd ]; + platforms = platforms.all; + }; +} |