2022-01-11 23:40:02 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, python2, unzip, tor }:
|
2011-11-19 17:12:00 +00:00
|
|
|
|
2021-05-11 13:07:27 +00:00
|
|
|
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
|
|
|
|
2021-05-11 13:07:27 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "prof7bit";
|
|
|
|
repo = "TorChat";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "2LHG9qxZDo5rV6wsputdRo2Y1aHs+irMwt1ucFnXQE0=";
|
2011-11-19 17:12:00 +00:00
|
|
|
};
|
|
|
|
|
2021-02-20 21:01:53 +00:00
|
|
|
nativeBuildInputs = [ unzip ];
|
2022-01-11 23:40:02 +00:00
|
|
|
buildInputs = with python2.pkgs; [ python wxPython wrapPython ];
|
|
|
|
pythonPath = with python2.pkgs; [ wxPython ];
|
2011-11-19 17:12:00 +00:00
|
|
|
|
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
|
2022-01-11 23:40:02 +00:00
|
|
|
makeWrapper ${python2}/bin/python $out/bin/torchat \
|
2011-11-19 17:12:00 +00:00
|
|
|
--set PYTHONPATH $out/lib/torchat:$program_PYTHONPATH \
|
2022-03-14 18:06:00 +00:00
|
|
|
--chdir "$out/lib/torchat" \
|
2011-11-19 17:12:00 +00:00
|
|
|
--add-flags "-O $out/lib/torchat/torchat.py"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with 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;
|
2021-12-18 09:25:46 +00:00
|
|
|
maintainers = [ ];
|
2011-12-11 18:35:20 +00:00
|
|
|
platforms = platforms.unix;
|
2011-11-19 17:12:00 +00:00
|
|
|
};
|
|
|
|
}
|