d0b4c2e0c2
svn path=/nixpkgs/trunk/; revision=22069
48 lines
1.5 KiB
Nix
48 lines
1.5 KiB
Nix
a :
|
|
let
|
|
fetchurl = a.fetchurl;
|
|
|
|
version = a.lib.attrByPath ["version"] "0.13.4" 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/0.13/gajim-${version}.tar.gz";
|
|
sha256 = "0w7ddimwbapz51k76agqac5lwaqrsacl01zgq3jngrkgpfjlvxym";
|
|
};
|
|
|
|
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"];
|
|
|
|
fixScriptNames = a.fullDepEntry (''
|
|
mkdir "$out"/bin-wrapped
|
|
for i in "$out"/bin/.*-wrapped; do
|
|
name="$i"
|
|
name="''${name%-wrapped}"
|
|
name="''${name##*/.}"
|
|
mv "$i" "$out/bin-wrapped/$name"
|
|
sed -e 's^'"$i"'^'"$out/bin-wrapped/$name"'^' -i "$out/bin/$name"
|
|
done
|
|
'') ["wrapBinContentsPython"];
|
|
|
|
/* doConfigure should be removed if not needed */
|
|
phaseNames = ["preConfigure" (a.doDump "1") "doConfigure" "doMakeInstall" "wrapBinContentsPython" "fixScriptNames"];
|
|
|
|
name = "gajim-" + version;
|
|
meta = {
|
|
description = "Jabber client with meta-contacts";
|
|
maintainers = [a.lib.maintainers.raskin];
|
|
};
|
|
}
|