git.iko.soy/typeable/nixpkgs
on master help sign in
powerline: 2.7 -> 2.8.1
commit8447475f5a6c3868cf258c2690f1a88d6f59d1eb authorGabriel Ebner <gebner@gebner.org> dateWed 8 Jul 2020, 14:46 (6 years ago) parent1837136
2 files changed+26−23
pkgs/development/python-modules/powerline/default.nix+25−23 pkgs/top-level/all-packages.nix+1
pkgs/development/python-modules/powerline/default.nix+25−23
@@ -1,26 +1,38 @@
11{ lib
2−, fetchurl
2+, fetchFromGitHub
3+, python
34, buildPythonPackage
5+, socat
46, psutil
7+, hglib
58, pygit2
9+, pyuv
10+, i3ipc
611}:
712
8−# The source of this package needs to be patched to include the full path to
9−# the executables of git, mercurial and bazaar.
13+# TODO: bzr support is missing because nixpkgs switched to `breezy`
1014
1115buildPythonPackage rec {
12− version = "2.7";
16+ version = "2.8.1";
1317 pname = "powerline";
1418
15− src = fetchurl {
16− url = "https://github.com/powerline/powerline/archive/${version}.tar.gz";
17− name = "${pname}-${version}.tar.gz";
18− sha256 = "1h1j2rfphvfdq6mmfyn5bql45hzrwxkhpc2jcwf0vrl3slzkl5s5";
19+ src = fetchFromGitHub {
20+ owner = pname;
21+ repo = pname;
22+ rev = version;
23+ sha256 = "0xscckcbw75pbcl4546ndrjs4682pn2sqqrd6qvqm0s6zswg7a0y";
1924 };
2025
21− propagatedBuildInputs = [ psutil pygit2];
26+ propagatedBuildInputs = [
27+ socat
28+ psutil
29+ hglib
30+ pygit2
31+ pyuv
32+ i3ipc
33+ ];
2234
23−# error: This is still beta and some tests still fail
35+ # tests are travis-specific
2436 doCheck = false;
2537
2638 postInstall = ''
@@ -29,19 +41,9 @@ buildPythonPackage rec {
2941 install -m644 "font/PowerlineSymbols.otf" "$out/share/fonts/OTF/PowerlineSymbols.otf"
3042 install -m644 "font/10-powerline-symbols.conf" "$out/etc/fonts/conf.d/10-powerline-symbols.conf"
3143
32− install -dm755 "$out/share/vim/vimfiles/plugin"
33− install -m644 "powerline/bindings/vim/plugin/powerline.vim" "$out/share/vim/vimfiles/plugin/powerline.vim"
34−
35− install -dm755 "$out/share/zsh/site-contrib"
36− install -m644 "powerline/bindings/zsh/powerline.zsh" "$out/share/zsh/site-contrib/powerline.zsh"
37−
38− install -dm755 "$out/share/tmux"
39− install -m644 "powerline/bindings/tmux/powerline.conf" "$out/share/tmux/powerline.conf"
40−
41− install -dm755 "$out/share/fish/vendor_functions.d"
42− install -m644 "powerline/bindings/fish/powerline-setup.fish" "$out/share/fish/vendor_functions.d/powerline-setup.fish"
43−
44− '';
44+ cp -ra powerline/bindings/{bash,fish,shell,tcsh,tmux,vim,zsh} $out/share/
45+ rm $out/share/*/*.py
46+ '';
4547
4648 meta = {
4749 homepage = "https://github.com/powerline/powerline";
pkgs/top-level/all-packages.nix+1
@@ -8085,6 +8085,7 @@ in
80858085
80868086 grml-zsh-config = callPackage ../shells/zsh/grml-zsh-config { };
80878087
8088+ powerline = with python3Packages; toPythonApplication powerline;
80888089
80898090 ### DEVELOPMENT / COMPILERS
80908091