nixpkgs/pkgs/applications/editors/kakoune/plugins/kak-powerline.nix
Timothy DeHerrera 0b32fe2d7e kakounePlugins: Add 5 kakoune plugins (#67593)
* kakounePlugins: Add 5 kakoune plugins

Should be compatible with
https://github.com/NixOS/nixpkgs/pull/64310

* kak-auto-pairs: for automatic closing of pairs
* kak-buffers: for easier buffer management
* kak-fzf: for fzf integration
* kak-powerline: for a prettier modeline
* kak-vertical-selection: for easy vertical selections

* kakounePlugins: alphabetize package list

* kakounePlugins.kak-fzf: add ability to choose between fzf/skim

* kakounePlugins.kak-powerline: substitute full path to git binary
2019-09-03 22:54:37 +02:00

30 lines
823 B
Nix

{ stdenv, git, fetchFromGitHub }:
stdenv.mkDerivation {
name = "kak-powerline";
version = "2019-07-23";
src = fetchFromGitHub {
owner = "andreyorst";
repo = "powerline.kak";
rev = "82b01eb6c97c7380b7da253db1fd484a5de13ea4";
sha256 = "1480wp2jc7c84z1wqmpf09lzny6kbnbhiiym2ffaddxrd4ns9i6z";
};
configurePhase = ''
substituteInPlace rc/modules/git.kak \
--replace \'git\' \'${git}/bin/git\'
'';
installPhase = ''
mkdir -p $out/share/kak/autoload/plugins
cp -r rc $out/share/kak/autoload/plugins/powerline
'';
meta = with stdenv.lib;
{ description = "Kakoune modeline, but with passion";
homepage = "https://github.com/andreyorst/powerline.kak";
license = licenses.publicDoman;
maintainers = with maintainers; [ nrdxp ];
platform = platforms.all;
};
}