powerline: 2.7 -> 2.8.1
This commit is contained in:
parent
1837136c7b
commit
8447475f5a
@ -1,26 +1,38 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, fetchurl
|
, fetchFromGitHub
|
||||||
|
, python
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
|
, socat
|
||||||
, psutil
|
, psutil
|
||||||
|
, hglib
|
||||||
, pygit2
|
, pygit2
|
||||||
|
, pyuv
|
||||||
|
, i3ipc
|
||||||
}:
|
}:
|
||||||
|
|
||||||
# The source of this package needs to be patched to include the full path to
|
# TODO: bzr support is missing because nixpkgs switched to `breezy`
|
||||||
# the executables of git, mercurial and bazaar.
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "2.7";
|
version = "2.8.1";
|
||||||
pname = "powerline";
|
pname = "powerline";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/powerline/powerline/archive/${version}.tar.gz";
|
owner = pname;
|
||||||
name = "${pname}-${version}.tar.gz";
|
repo = pname;
|
||||||
sha256 = "1h1j2rfphvfdq6mmfyn5bql45hzrwxkhpc2jcwf0vrl3slzkl5s5";
|
rev = version;
|
||||||
|
sha256 = "0xscckcbw75pbcl4546ndrjs4682pn2sqqrd6qvqm0s6zswg7a0y";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ psutil pygit2];
|
propagatedBuildInputs = [
|
||||||
|
socat
|
||||||
|
psutil
|
||||||
|
hglib
|
||||||
|
pygit2
|
||||||
|
pyuv
|
||||||
|
i3ipc
|
||||||
|
];
|
||||||
|
|
||||||
# error: This is still beta and some tests still fail
|
# tests are travis-specific
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
@ -29,18 +41,8 @@ buildPythonPackage rec {
|
|||||||
install -m644 "font/PowerlineSymbols.otf" "$out/share/fonts/OTF/PowerlineSymbols.otf"
|
install -m644 "font/PowerlineSymbols.otf" "$out/share/fonts/OTF/PowerlineSymbols.otf"
|
||||||
install -m644 "font/10-powerline-symbols.conf" "$out/etc/fonts/conf.d/10-powerline-symbols.conf"
|
install -m644 "font/10-powerline-symbols.conf" "$out/etc/fonts/conf.d/10-powerline-symbols.conf"
|
||||||
|
|
||||||
install -dm755 "$out/share/vim/vimfiles/plugin"
|
cp -ra powerline/bindings/{bash,fish,shell,tcsh,tmux,vim,zsh} $out/share/
|
||||||
install -m644 "powerline/bindings/vim/plugin/powerline.vim" "$out/share/vim/vimfiles/plugin/powerline.vim"
|
rm $out/share/*/*.py
|
||||||
|
|
||||||
install -dm755 "$out/share/zsh/site-contrib"
|
|
||||||
install -m644 "powerline/bindings/zsh/powerline.zsh" "$out/share/zsh/site-contrib/powerline.zsh"
|
|
||||||
|
|
||||||
install -dm755 "$out/share/tmux"
|
|
||||||
install -m644 "powerline/bindings/tmux/powerline.conf" "$out/share/tmux/powerline.conf"
|
|
||||||
|
|
||||||
install -dm755 "$out/share/fish/vendor_functions.d"
|
|
||||||
install -m644 "powerline/bindings/fish/powerline-setup.fish" "$out/share/fish/vendor_functions.d/powerline-setup.fish"
|
|
||||||
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -8085,6 +8085,7 @@ in
|
|||||||
|
|
||||||
grml-zsh-config = callPackage ../shells/zsh/grml-zsh-config { };
|
grml-zsh-config = callPackage ../shells/zsh/grml-zsh-config { };
|
||||||
|
|
||||||
|
powerline = with python3Packages; toPythonApplication powerline;
|
||||||
|
|
||||||
### DEVELOPMENT / COMPILERS
|
### DEVELOPMENT / COMPILERS
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user