2017-06-03 18:22:07 +00:00
|
|
|
{ lib
|
|
|
|
, fetchurl
|
|
|
|
, buildPythonPackage
|
|
|
|
, psutil
|
|
|
|
, pygit2
|
|
|
|
}:
|
|
|
|
|
2017-10-19 12:57:19 +00:00
|
|
|
# The source of this package needs to be patched to include the full path to
|
|
|
|
# the executables of git, mercurial and bazaar.
|
|
|
|
|
2017-06-03 18:22:07 +00:00
|
|
|
buildPythonPackage rec {
|
2018-10-24 11:30:35 +00:00
|
|
|
version = "2.7";
|
2017-11-09 11:26:09 +00:00
|
|
|
pname = "powerline";
|
|
|
|
|
2017-06-03 18:22:07 +00:00
|
|
|
src = fetchurl {
|
2017-11-09 11:26:09 +00:00
|
|
|
url = "https://github.com/powerline/powerline/archive/${version}.tar.gz";
|
2019-08-15 12:41:18 +00:00
|
|
|
name = "${pname}-${version}.tar.gz";
|
2018-10-24 11:30:35 +00:00
|
|
|
sha256 = "1h1j2rfphvfdq6mmfyn5bql45hzrwxkhpc2jcwf0vrl3slzkl5s5";
|
2017-06-03 18:22:07 +00:00
|
|
|
};
|
|
|
|
|
2017-10-19 12:57:19 +00:00
|
|
|
propagatedBuildInputs = [ psutil pygit2];
|
2017-06-03 18:22:07 +00:00
|
|
|
|
|
|
|
# error: This is still beta and some tests still fail
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -dm755 "$out/share/fonts/OTF/"
|
|
|
|
install -dm755 "$out/etc/fonts/conf.d"
|
|
|
|
install -m644 "font/PowerlineSymbols.otf" "$out/share/fonts/OTF/PowerlineSymbols.otf"
|
|
|
|
install -m644 "font/10-powerline-symbols.conf" "$out/etc/fonts/conf.d/10-powerline-symbols.conf"
|
|
|
|
|
|
|
|
install -dm755 "$out/share/vim/vimfiles/plugin"
|
|
|
|
install -m644 "powerline/bindings/vim/plugin/powerline.vim" "$out/share/vim/vimfiles/plugin/powerline.vim"
|
|
|
|
|
|
|
|
install -dm755 "$out/share/zsh/site-contrib"
|
|
|
|
install -m644 "powerline/bindings/zsh/powerline.zsh" "$out/share/zsh/site-contrib/powerline.zsh"
|
|
|
|
|
|
|
|
install -dm755 "$out/share/tmux"
|
|
|
|
install -m644 "powerline/bindings/tmux/powerline.conf" "$out/share/tmux/powerline.conf"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/powerline/powerline;
|
|
|
|
description = "The ultimate statusline/prompt utility";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|