13 # TODO: bzr support is missing because nixpkgs switched to `breezy`
15 buildPythonPackage rec {
18 format = "setuptools";
20 src = fetchFromGitHub {
23 rev = "refs/tags/${version}";
24 hash = "sha256-UIx9/IZg6Wv596wHzQb0CO6zwmQXUaFEPKBojo2LXmA=";
27 propagatedBuildInputs = [
33 ] ++ lib.optionals (!stdenv.isDarwin) [ i3ipc ];
35 # tests are travis-specific
39 install -dm755 "$out/share/fonts/OTF/"
40 install -dm755 "$out/etc/fonts/conf.d"
41 install -m644 "font/PowerlineSymbols.otf" "$out/share/fonts/OTF/PowerlineSymbols.otf"
42 install -m644 "font/10-powerline-symbols.conf" "$out/etc/fonts/conf.d/10-powerline-symbols.conf"
44 install -dm755 "$out/share/fish/vendor_functions.d"
45 install -m644 "powerline/bindings/fish/powerline-setup.fish" "$out/share/fish/vendor_functions.d/powerline-setup.fish"
47 cp -ra powerline/bindings/{bash,shell,tcsh,tmux,vim,zsh} $out/share/
52 homepage = "https://github.com/powerline/powerline";
53 description = "The ultimate statusline/prompt utility";
54 license = lib.licenses.mit;