2011-11-19 17:12:00 +00:00
|
|
|
{ stdenv, fetchurl, python, unzip, wxPython, wrapPython, tor }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "torchat";
|
2013-10-11 17:35:38 +00:00
|
|
|
version = "0.9.9.553";
|
2011-11-19 17:12:00 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-10-11 17:35:38 +00:00
|
|
|
url = "https://github.com/prof7bit/TorChat/archive/${version}.tar.gz";
|
|
|
|
sha256 = "0rb4lvv40pz6ab5kxq40ycvh7kh1yxn7swzgv2ff2nbhi62xnzp0";
|
2011-11-19 17:12:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ python unzip wxPython wrapPython ];
|
|
|
|
pythonPath = [ wxPython ];
|
|
|
|
|
2013-10-11 17:35:38 +00:00
|
|
|
preConfigure = "cd torchat/src; rm portable.txt";
|
2011-11-19 17:12:00 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
substituteInPlace "Tor/tor.sh" --replace "tor -f" "${tor}/bin/tor -f"
|
|
|
|
|
|
|
|
wrapPythonPrograms
|
|
|
|
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/lib/torchat
|
2011-11-19 17:12:00 +00:00
|
|
|
cp -rf * $out/lib/torchat
|
|
|
|
makeWrapper ${python}/bin/python $out/bin/torchat \
|
|
|
|
--set PYTHONPATH $out/lib/torchat:$program_PYTHONPATH \
|
|
|
|
--run "cd $out/lib/torchat" \
|
|
|
|
--add-flags "-O $out/lib/torchat/torchat.py"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/prof7bit/TorChat";
|
2013-10-11 17:35:38 +00:00
|
|
|
description = "Instant messaging application on top of the Tor network and it's location hidden services";
|
2011-11-19 17:12:00 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.phreedom ];
|
2011-12-11 18:35:20 +00:00
|
|
|
platforms = platforms.unix;
|
2011-11-19 17:12:00 +00:00
|
|
|
};
|
|
|
|
}
|