1{ lib 2, fetchurl 3, buildPythonPackage 4, git 5, mercurial 6, bazaar 7, psutil 8, pygit2 9}: 10 11# The source of this package needs to be patched to include the full path to 12# the executables of git, mercurial and bazaar. 13 14buildPythonPackage rec { 15 version = "2.6"; 16 pname = "powerline"; 17 name = pname + "-" + version; 18 19 src = fetchurl { 20 url = "https://github.com/powerline/powerline/archive/${version}.tar.gz"; 21 name = "${name}.tar.gz"; 22 sha256 = "c108f11fe10dc910febb94b87d3abded85d4363fb950366a9e30282b9ba7c272"; 23 }; 24 25 propagatedBuildInputs = [ psutil pygit2]; 26 27# error: This is still beta and some tests still fail 28 doCheck = false; 29 30 postInstall = '' 31 install -dm755 "$out/share/fonts/OTF/" 32 install -dm755 "$out/etc/fonts/conf.d" 33 install -m644 "font/PowerlineSymbols.otf" "$out/share/fonts/OTF/PowerlineSymbols.otf" 34 install -m644 "font/10-powerline-symbols.conf" "$out/etc/fonts/conf.d/10-powerline-symbols.conf" 35 36 install -dm755 "$out/share/vim/vimfiles/plugin" 37 install -m644 "powerline/bindings/vim/plugin/powerline.vim" "$out/share/vim/vimfiles/plugin/powerline.vim" 38 39 install -dm755 "$out/share/zsh/site-contrib" 40 install -m644 "powerline/bindings/zsh/powerline.zsh" "$out/share/zsh/site-contrib/powerline.zsh" 41 42 install -dm755 "$out/share/tmux" 43 install -m644 "powerline/bindings/tmux/powerline.conf" "$out/share/tmux/powerline.conf" 44 ''; 45 46 meta = { 47 homepage = https://github.com/powerline/powerline; 48 description = "The ultimate statusline/prompt utility"; 49 license = lib.licenses.mit; 50 }; 51}