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