Added Gajim XMPP client in nearly full-feature configuration with all dependencies

svn path=/nixpkgs/trunk/; revision=15001
This commit is contained in:
Michael Raskin 2009-04-12 19:34:20 +00:00
parent 7ce7e06811
commit 3d5d738895
7 changed files with 190 additions and 2 deletions

View File

@ -0,0 +1,36 @@
a :
let
fetchurl = a.fetchurl;
version = a.lib.getAttr ["version"] "0.12.1" a;
buildInputs = with a; [
python pyGtkGlade gtk perl intltool dbus gettext
pkgconfig makeWrapper libglade pyopenssl libXScrnSaver
libXt xproto libXext xextproto libX11 gtkspell aspell
scrnsaverproto pycrypto pythonDBus pythonSexy
docutils
];
in
rec {
src = fetchurl {
url = "http://www.gajim.org/downloads/gajim-${version}.tar.gz";
sha256 = "1iglh0i819m1a8qjkbyv2ydzbzhjgnaxyyq1jnikrwlbah5mjpbv";
};
inherit buildInputs;
configureFlags = [];
preConfigure = a.FullDepEntry (''
export PYTHONPATH="$PYTHONPATH''${PYTHONPATH:+:}$(toPythonPath ${a.pyGtkGlade})/gtk-2.0"
export PYTHONPATH="$PYTHONPATH''${PYTHONPATH:+:}$(toPythonPath ${a.pygobject})/gtk-2.0"
sed -e '/-L[$]x_libraries/d' -i configure
'') ["addInputs" "doUnpack"];
/* doConfigure should be removed if not needed */
phaseNames = ["preConfigure" (a.doDump "1") "doConfigure" "doMakeInstall" "wrapBinContentsPython"];
name = "gajim-" + version;
meta = {
description = "Jabber client with meta-contacts";
};
}

View File

@ -0,0 +1,29 @@
a :
let
fetchurl = a.fetchurl;
version = a.lib.getAttr ["version"] "0.83.0" a;
buildInputs = with a; [
pkgconfig
];
propagatedBuildInputs = with a; [
dbus python dbus_glib
];
in
rec {
src = fetchurl {
url = "http://dbus.freedesktop.org/releases/dbus-python/dbus-python-${version}.tar.gz";
sha256 = "14b1fwq9jyvg9qbbrmpk1264s9shm9n638hsgmkh9fn2lmd1vpc9";
};
inherit buildInputs propagatedBuildInputs;
configureFlags = [];
/* doConfigure should be removed if not needed */
phaseNames = ["doConfigure" "doMakeInstall"];
name = "python-dbus-" + version;
meta = {
description = "Python DBus bindings";
};
}

View File

@ -0,0 +1,32 @@
a :
let
fetchurl = a.fetchurl;
version = a.lib.getAttr ["version"] "0.1.9" a;
buildInputs = with a; [
pkgconfig pygtk
];
propagatedBuildInputs = with a; [
libsexy python gtk glib pango libxml2
];
in
rec {
src = fetchurl {
url = "http://releases.chipx86.com/libsexy/sexy-python/sexy-python-${version}.tar.gz";
sha256 = "05bgcsxwkp63rlr8wg6znd46cfbhrzc5wh70jabsi654pxxjb39d";
};
inherit buildInputs propagatedBuildInputs;
configureFlags = [];
/* doConfigure should be removed if not needed */
phaseNames = ["doConfigure" "doMakeInstall" "postInstall"];
postInstall = a.FullDepEntry (''
ln -s $out/lib/python*/site-packages/gtk-2.0/* $out/lib/python*/site-packages/
'') ["minInit"];
name = "python-libsexy-" + version;
meta = {
description = "Python libsexy bindings";
};
}

View File

@ -1,4 +1,5 @@
{stdenv, fetchurl, python, pkgconfig, glib, gtk, pygobject, pycairo}:
{stdenv, fetchurl, python, pkgconfig, glib, gtk, pygobject, pycairo
, libglade ? null}:
stdenv.mkDerivation {
name = "pygtk-2.10.4";
@ -8,7 +9,9 @@ stdenv.mkDerivation {
sha256 = "1xg8vng42lql29aa5ryva8icc8dwdc7h2y3yn96qjdgl394d96mb";
};
buildInputs = [python pkgconfig glib gtk];
buildInputs = [python pkgconfig glib gtk]
++ (if libglade != null then [libglade] else [])
;
propagatedBuildInputs = [pygobject pycairo];
}

View File

@ -0,0 +1,26 @@
a :
let
fetchurl = a.fetchurl;
version = a.lib.getAttr ["version"] "0.8" a;
propagatedBuildInputs = with a; [
openssl python
];
in
rec {
src = fetchurl {
url = "http://prdownloads.sourceforge.net/sourceforge/pyopenssl/pyOpenSSL-${version}.tar.gz";
sha256 = "1qzzycjyp1qsw87msj9kg2q3h7il1bf4jkrwy841y0zi44fl3112";
};
inherit propagatedBuildInputs;
configureFlags = [];
/* doConfigure should be removed if not needed */
phaseNames = ["installPythonPackage"];
name = "pyOpenSSL-" + version;
meta = {
description = "Python OpenSSL wrapper capable of checking certificates";
};
}

View File

@ -0,0 +1,27 @@
a :
let
fetchurl = a.fetchurl;
version = a.lib.getAttr ["version"] "0.5" a;
buildInputs = with a; [
python pil makeWrapper
];
in
rec {
src = fetchurl {
url = "http://prdownloads.sourceforge.net/docutils/docutils-${version}.tar.gz";
sha256 = "03k1dakb5j1xi1xd62vqqy7dkgd1fhr4ahmvvmd5g87wxn2gjz3l";
};
inherit buildInputs;
configureFlags = [];
/* doConfigure should be removed if not needed */
phaseNames = ["installPythonPackage" "wrapBinContentsPython"];
name = "python-docutils-" + version;
meta = {
description = "Processor of ReStructured Text";
};
}

View File

@ -1156,6 +1156,16 @@ let
inherit stdenv fetchurl python antlr;
};
pythonDBus = builderDefsPackage (import ../development/python-modules/dbus) {
inherit python pkgconfig dbus_glib;
dbus = dbus.libs;
};
pythonSexy = builderDefsPackage (import ../development/python-modules/libsexy) {
inherit python libsexy pkgconfig libxml2 pygtk;
inherit (gtkLibs) pango gtk glib;
};
qhull = import ../development/libraries/qhull {
inherit stdenv fetchurl;
};
@ -2426,6 +2436,10 @@ let
inherit (xlibs) libX11 libXt;
};
docutils = builderDefsPackage (import ../development/tools/documentation/docutils) {
inherit python pil makeWrapper;
};
doxygen = import ../development/tools/documentation/doxygen {
inherit fetchurl stdenv graphviz perl flex bison gnumake;
inherit (xlibs) libX11 libXext;
@ -6414,10 +6428,20 @@ let
inherit (gtkLibs) glib gtk;
};
pyGtkGlade = import ../development/python-modules/pygtk {
inherit fetchurl stdenv python pkgconfig pygobject pycairo;
inherit (gtkLibs) glib gtk;
inherit (gnome) libglade;
};
pyopengl = import ../development/python-modules/pyopengl {
inherit fetchurl stdenv setuptools mesa freeglut pil python;
};
pyopenssl = builderDefsPackage (import ../development/python-modules/pyopenssl) {
inherit python openssl;
};
pysqlite = import ../development/python-modules/pysqlite {
inherit stdenv fetchurl python sqlite;
};
@ -9611,6 +9635,17 @@ let
inherit stdenv python;
};
gajim = builderDefsPackage (import ../applications/networking/instant-messengers/gajim) {
inherit perl intltool pyGtkGlade gettext pkgconfig makeWrapper pygobject
pyopenssl gtkspell libsexy pycrypto aspell pythonDBus pythonSexy
docutils;
dbus = dbus.libs;
inherit (gnome) gtk libglade;
inherit (xlibs) libXScrnSaver libXt xproto libXext xextproto libX11
scrnsaverproto;
python = pythonFull;
};
generator = import ../misc/emulators/generator {
inherit fetchurl stdenv SDL nasm zlib bzip2 libjpeg;
inherit (gtkLibs1x) gtk;