nixpkgs/pkgs/applications/networking/instant-messengers/salut-a-toi/default.nix

40 lines
1.2 KiB
Nix
Raw Normal View History

2012-09-13 12:24:07 +02:00
{stdenv, fetchurl, python, pythonPackages, pygobject, pythonDBus}:
2012-09-13 12:14:49 +02:00
stdenv.mkDerivation rec {
url = "ftp://ftp.goffi.org/sat/sat-0.2.0.tar.bz2";
name = stdenv.lib.nameFromURL url ".tar";
src = fetchurl {
inherit url;
sha256 = "14qqgsgqns1xcp97nd3jcxrq54z1x5a6kimqxy029hh7ys813mf1";
};
buildInputs = with pythonPackages;
[
python twisted urwid beautifulsoup wxPython distribute pygobject
2012-09-13 12:32:38 +02:00
wokkel pythonDBus pyfeed
2012-09-13 12:14:49 +02:00
];
configurePhase = ''
sed -e "s@sys.prefix@'$out'@g" -i setup.py
2012-09-13 12:24:07 +02:00
sed -e "1aexport PATH=\"\$PATH\":\"$out/bin\":\"${pythonPackages.twisted}/bin\"" -i src/sat.sh
sed -e "1aexport PYTHONPATH=\"\$PYTHONPATHPATH\":\"$PYTHONPATH\":"$out/lib/${python.libPrefix}/site-packages"" -i src/sat.sh
2012-09-13 12:14:49 +02:00
echo 'import wokkel.muc' | python
'';
buildPhase = ''
python setup.py build
'';
installPhase = ''
python setup.py install --prefix="$out"
'';
meta = {
homepage = "http://sat.goffi.org/";
description = "A multi-frontend XMPP client";
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [raskin];
license = stdenv.lib.licenses.gpl3plus;
};
}