14 # TODO: bzr support is missing because nixpkgs switched to `breezy`
16 buildPythonPackage rec {
19 format = "setuptools";
21 src = fetchFromGitHub {
24 rev = "refs/tags/${version}";
25 hash = "sha256-snJrfUvP11lBIy6F0WtqJt9fiYm5jxMwm9u3u5XFO84=";
28 propagatedBuildInputs = [
34 ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ i3ipc ];
36 # tests are travis-specific
40 install -dm755 "$out/share/fonts/OTF/"
41 install -dm755 "$out/etc/fonts/conf.d"
42 install -m644 "font/PowerlineSymbols.otf" "$out/share/fonts/OTF/PowerlineSymbols.otf"
43 install -m644 "font/10-powerline-symbols.conf" "$out/etc/fonts/conf.d/10-powerline-symbols.conf"
45 install -dm755 "$out/share/fish/vendor_functions.d"
46 install -m644 "powerline/bindings/fish/powerline-setup.fish" "$out/share/fish/vendor_functions.d/powerline-setup.fish"
48 cp -ra powerline/bindings/{bash,shell,tcsh,tmux,vim,zsh} $out/share/
53 homepage = "https://github.com/powerline/powerline";
54 description = "Ultimate statusline/prompt utility";
55 license = lib.licenses.mit;