1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00

Add libgit2, pygit2 and powerline beta

This commit is contained in:
Jaka Hudoklin 2013-05-10 20:12:37 +00:00
parent 5e4a456e6f
commit 67af13dbf8
3 changed files with 83 additions and 0 deletions

View file

@ -0,0 +1,22 @@
{stdenv, fetchurl, cmake, zlib, python}:
stdenv.mkDerivation rec {
version = "0.18.0";
name = "libgit2-${version}";
src = fetchurl {
name = "${name}.tar.gz";
url = "https://github.com/libgit2/libgit2/tarball/v${version}";
md5 = "50409ddb0c34713677b33ef617e92c94";
};
nativeBuildInputs = [ cmake python ];
buildInputs = [ zlib ];
meta = {
description = "the Git linkable library";
homepage = http://libgit2.github.com/;
license = with stdenv.lib.licenses; gpl2;
platforms = with stdenv.lib.platforms; all;
};
}

View file

@ -3793,6 +3793,8 @@ let
giblib = callPackage ../development/libraries/giblib { };
libgit2 = callPackage ../development/libraries/git2 { };
glew = callPackage ../development/libraries/glew { };
glfw = callPackage ../development/libraries/glfw { };

View file

@ -3035,6 +3035,46 @@ pythonPackages = python.modules // rec {
};
powerline = buildPythonPackage rec {
rev = "72ea6730ead85fc19b983bd70173d15e6caa4965";
name = "powerline-beta_${rev}";
src = fetchurl {
url = "https://github.com/Lokaltog/powerline/tarball/${rev}";
name = "${name}.tar.bz";
sha256 = "08sr8ymhphh7rsn2gcmpdz3kzd04b7w3k4pc35h8w60jvg9i449s";
};
propagatedBuildInputs = [ pkgs.git pkgs.mercurial pkgs.bazaar pythonPackages.psutil pythonPackages.pygit2 ];
# error: This is still beta and some tests still fail
doCheck = false;
postInstall = ''
install -dm755 "$out/share/fonts/OTF/"
install -dm755 "$out/etc/fonts/conf.d"
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 -dm755 "$out/share/vim/vimfiles/plugin"
install -m644 "powerline/bindings/vim/plugin/powerline.vim" "$out/share/vim/vimfiles/plugin/powerline.vim"
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"
'';
meta = {
homepage = https://github.com/Lokaltog/powerline;
description = "The ultimate statusline/prompt utility.";
license = with stdenv.lib.licenses; mit;
platforms = with stdenv.lib.platforms; all;
};
};
prettytable = buildPythonPackage rec {
name = "prettytable-0.7.1";
@ -3168,6 +3208,25 @@ pythonPackages = python.modules // rec {
};
pygit2 = buildPythonPackage rec {
name = "pygit2-0.18.1";
src = fetchurl {
url = "https://pypi.python.org/packages/source/p/pygit2/${name}.tar.gz";
md5 = "8d27f84509a96d6791a6c393ae67d7c8";
};
propagatedBuildInputs = [ pkgs.libgit2 ];
meta = {
homepage = https://pypi.python.org/pypi/pygit2;
description = "Pygit2 is a set of Python bindings to the libgit2 shared library.";
license = with stdenv.lib.licenses; gpl2;
platforms = with stdenv.lib.platforms; all;
};
};
Babel = buildPythonPackage (rec {
name = "Babel-0.9.6";