Merge pull request #39147 from peterhoeg/u/tox
tox: libtoxcore and assorted tox client updates
This commit is contained in:
commit
12d89a7ed9
@ -1,19 +1,23 @@
|
|||||||
{ mkDerivation, lib, fetchFromGitHub, cmake, pkgconfig,
|
{ stdenv, mkDerivation, lib, fetchFromGitHub, cmake, pkgconfig
|
||||||
libtoxcore,
|
, libtoxcore
|
||||||
libpthreadstubs, libXdmcp, libXScrnSaver,
|
, libpthreadstubs, libXdmcp, libXScrnSaver
|
||||||
qtbase, qtsvg, qttools, qttranslations,
|
, qtbase, qtsvg, qttools, qttranslations
|
||||||
ffmpeg, filter-audio, libexif, libsodium, libopus,
|
, ffmpeg, filter-audio, libexif, libsodium, libopus
|
||||||
libvpx, openal, pcre, qrencode, sqlcipher }:
|
, libvpx, openal, pcre, qrencode, sqlcipher
|
||||||
|
, AVFoundation ? null }:
|
||||||
|
|
||||||
mkDerivation rec {
|
let
|
||||||
|
version = "1.15.0";
|
||||||
|
rev = "v${version}";
|
||||||
|
|
||||||
|
in mkDerivation rec {
|
||||||
name = "qtox-${version}";
|
name = "qtox-${version}";
|
||||||
version = "1.13.0";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "qTox";
|
owner = "qTox";
|
||||||
repo = "qTox";
|
repo = "qTox";
|
||||||
rev = "v${version}";
|
sha256 = "1garwnlmg452b0bwx36rsh08s15q3zylb26l01iiwg4l9vcaldh9";
|
||||||
sha256 = "08x71p23d0sp0w11k8z3wf3k56iclmdq9x652n8ggidgyrdi9f6y";
|
inherit rev;
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
@ -22,17 +26,18 @@ mkDerivation rec {
|
|||||||
qtbase qtsvg qttranslations
|
qtbase qtsvg qttranslations
|
||||||
ffmpeg filter-audio libexif libopus libsodium
|
ffmpeg filter-audio libexif libopus libsodium
|
||||||
libvpx openal pcre qrencode sqlcipher
|
libvpx openal pcre qrencode sqlcipher
|
||||||
];
|
] ++ lib.optionals stdenv.isDarwin [ AVFoundation] ;
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkgconfig qttools ];
|
nativeBuildInputs = [ cmake pkgconfig qttools ];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DGIT_DESCRIBE=${version}"
|
"-DGIT_DESCRIBE=${rev}"
|
||||||
"-DENABLE_STATUSNOTIFIER=False"
|
"-DENABLE_STATUSNOTIFIER=False"
|
||||||
"-DENABLE_GTK_SYSTRAY=False"
|
"-DENABLE_GTK_SYSTRAY=False"
|
||||||
"-DENABLE_APPINDICATOR=False"
|
"-DENABLE_APPINDICATOR=False"
|
||||||
|
"-DTIMESTAMP=1"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -5,22 +5,24 @@ with stdenv.lib;
|
|||||||
|
|
||||||
let
|
let
|
||||||
configFile = optionalString (conf!=null) (builtins.toFile "config.h" conf);
|
configFile = optionalString (conf!=null) (builtins.toFile "config.h" conf);
|
||||||
in
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
name = "ratox-0.4";
|
name = "ratox-0.4.20180303";
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = "git://git.2f30.org/ratox.git";
|
url = "git://git.2f30.org/ratox.git";
|
||||||
rev = "0db821b7bd566f6cfdc0cc5a7bbcc3e5e92adb4c";
|
rev = "269f7f97fb374a8f9c0b82195c21de15b81ddbbb";
|
||||||
sha256 = "0wmf8hydbcq4bkpsld9vnqw4zfzf3f04vhgwy17nd4p5p389fbl5";
|
sha256 = "0bpn37h8jvsqd66fkba8ky42nydc8acawa5x31yxqlxc8mc66k74";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ ./ldlibs.patch ];
|
|
||||||
|
|
||||||
buildInputs = [ libtoxcore ];
|
buildInputs = [ libtoxcore ];
|
||||||
|
|
||||||
preConfigure = optionalString (conf!=null) "cp ${configFile} config.def.h";
|
preConfigure = ''
|
||||||
|
substituteInPlace config.mk \
|
||||||
|
--replace '-lsodium -lopus -lvpx ' ""
|
||||||
|
|
||||||
|
${optionalString (conf!=null) "cp ${configFile} config.def.h"}
|
||||||
|
'';
|
||||||
|
|
||||||
makeFlags = [ "PREFIX=$(out)" ];
|
makeFlags = [ "PREFIX=$(out)" ];
|
||||||
|
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
--- a/config.mk
|
|
||||||
+++ b/config.mk
|
|
||||||
@@ -13 +13 @@ LDFLAGS = -L/usr/local/lib
|
|
||||||
-LDLIBS = -ltoxcore -ltoxav -ltoxencryptsave -lsodium -lopus -lvpx -lm -lpthread
|
|
||||||
+LDLIBS = -ltoxcore -ltoxav -ltoxencryptsave -lm -lpthread
|
|
@ -4,13 +4,13 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "toxic-${version}";
|
name = "toxic-${version}";
|
||||||
version = "0.7.2";
|
version = "0.8.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Tox";
|
owner = "Tox";
|
||||||
repo = "toxic";
|
repo = "toxic";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1kws6bx5va1wc0k6pqihrla91vicxk4zqghvxiylgfbjr1jnkvwc";
|
sha256 = "0fwmk945nip98m3md58y3ibjmzfq25hns3xf0bmbc6fjpww8d5p5";
|
||||||
};
|
};
|
||||||
|
|
||||||
makeFlags = [ "PREFIX=$(out)"];
|
makeFlags = [ "PREFIX=$(out)"];
|
||||||
|
@ -1,16 +1,18 @@
|
|||||||
{ stdenv, fetchFromGitHub, cmake, pkgconfig, libtoxcore, filter-audio, dbus, libvpx, libX11, openal, freetype, libv4l
|
{ stdenv, lib, fetchFromGitHub, check, cmake, pkgconfig
|
||||||
, libXrender, fontconfig, libXext, libXft, utillinux, git, libsodium, libopus, check }:
|
, libtoxcore, filter-audio, dbus, libvpx, libX11, openal, freetype, libv4l
|
||||||
|
, libXrender, fontconfig, libXext, libXft, utillinux, libsodium, libopus }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "utox-${version}";
|
name = "utox-${version}";
|
||||||
|
|
||||||
version = "0.16.1";
|
version = "0.17.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "uTox";
|
owner = "uTox";
|
||||||
repo = "uTox";
|
repo = "uTox";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0ak10925v67yaga2pw9yzp0xkb5j1181srfjdyqpd29v8mi9j828";
|
sha256 = "12wbq883il7ikldayh8hm0cjfrkp45vn05xx9s1jbfz6gmkidyar";
|
||||||
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
@ -20,16 +22,20 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cmake git pkgconfig check
|
check cmake pkgconfig
|
||||||
];
|
];
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DENABLE_UPDATER=OFF"
|
"-DENABLE_AUTOUPDATE=OFF"
|
||||||
] ++ stdenv.lib.optional (!doCheck) "-DENABLE_TESTS=OFF";
|
] ++ lib.optional (doCheck) "-DENABLE_TESTS=ON";
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = stdenv.isLinux;
|
||||||
|
|
||||||
checkTarget = "test";
|
checkPhase = ''
|
||||||
|
runHook preCheck
|
||||||
|
ctest -VV
|
||||||
|
runHook postCheck
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Lightweight Tox client";
|
description = "Lightweight Tox client";
|
||||||
|
@ -1,46 +1,51 @@
|
|||||||
{ stdenv, fetchFromGitHub, cmake, libsodium, ncurses, libopus, libmsgpack
|
{ stdenv, fetchFromGitHub, cmake, libsodium, ncurses, libopus, libmsgpack
|
||||||
, libvpx, check, libconfig, pkgconfig }:
|
, libvpx, check, libconfig, pkgconfig }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
name = "libtoxcore-${version}";
|
generic = { version, sha256 }:
|
||||||
version = "0.1.11";
|
stdenv.mkDerivation rec {
|
||||||
|
name = "libtoxcore-${version}";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "TokTok";
|
owner = "TokTok";
|
||||||
repo = "c-toxcore";
|
repo = "c-toxcore";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
|
inherit sha256;
|
||||||
|
};
|
||||||
|
|
||||||
|
cmakeFlags = [
|
||||||
|
"-DBUILD_NTOX=ON"
|
||||||
|
"-DDHT_BOOTSTRAP=ON"
|
||||||
|
"-DBOOTSTRAP_DAEMON=ON"
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
libsodium libmsgpack ncurses libconfig
|
||||||
|
] ++ stdenv.lib.optionals (!stdenv.isAarch32) [
|
||||||
|
libopus libvpx
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ cmake pkgconfig ];
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "P2P FOSS instant messaging application aimed to replace Skype";
|
||||||
|
homepage = https://tox.chat;
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
|
maintainers = with maintainers; [ peterhoeg ];
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
in rec {
|
||||||
|
libtoxcore_0_1 = generic {
|
||||||
|
version = "0.1.11";
|
||||||
sha256 = "1fya5gfiwlpk6fxhalv95n945ymvp2iidiyksrjw1xw95fzsp1ij";
|
sha256 = "1fya5gfiwlpk6fxhalv95n945ymvp2iidiyksrjw1xw95fzsp1ij";
|
||||||
};
|
};
|
||||||
|
|
||||||
cmakeFlags = [
|
libtoxcore_0_2 = generic {
|
||||||
"-DBUILD_NTOX=ON"
|
version = "0.2.2";
|
||||||
"-DDHT_BOOTSTRAP=ON"
|
sha256 = "1463grbbv009pj2g6dbnyk4lr871vw41962m63v21mmp6dkrr7r5";
|
||||||
"-DBOOTSTRAP_DAEMON=ON"
|
|
||||||
];
|
|
||||||
|
|
||||||
buildInputs = [
|
|
||||||
libsodium libmsgpack ncurses libconfig
|
|
||||||
] ++ stdenv.lib.optionals (!stdenv.isAarch32) [
|
|
||||||
libopus
|
|
||||||
libvpx
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkgconfig ];
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
|
||||||
|
|
||||||
checkInputs = [ check ];
|
|
||||||
|
|
||||||
checkPhase = "ctest";
|
|
||||||
|
|
||||||
# for some reason the tests are not running - it says "No tests found!!"
|
|
||||||
doCheck = true;
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
description = "P2P FOSS instant messaging application aimed to replace Skype";
|
|
||||||
homepage = https://tox.chat;
|
|
||||||
license = licenses.gpl3Plus;
|
|
||||||
maintainers = with maintainers; [ peterhoeg ];
|
|
||||||
platforms = platforms.all;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,25 +1,22 @@
|
|||||||
{ stdenv, fetchFromGitHub, cmake, nlohmann_json,
|
{ stdenv, fetchFromGitHub, cmake, nlohmann_json,
|
||||||
libtoxcore, libsodium, systemd, libcap, zeromq }:
|
libtoxcore, libsodium, libcap, zeromq,
|
||||||
|
systemd ? null }:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
systemdOrNull = if stdenv.system == "x86_64-darwin" then null else systemd;
|
name = "toxvpn-2018-04-17";
|
||||||
if_systemd = optional (systemdOrNull != null);
|
|
||||||
in stdenv.mkDerivation rec {
|
|
||||||
name = "toxvpn-${version}";
|
|
||||||
version = "2017-06-25";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "cleverca22";
|
owner = "cleverca22";
|
||||||
repo = "toxvpn";
|
repo = "toxvpn";
|
||||||
rev = "7bd6f169d69c511affa8c9672e8f794e4e205a44";
|
rev = "dc766f98888f500ea51f002f59007eac3f3a0a06";
|
||||||
sha256 = "1km8hkrxmrnca1b49vbw5kyldayaln5plvz78vhf8325r6c5san0";
|
sha256 = "19br3fmrdm45fvymj9kvwikkn8m657yd5fkhx6grv35ckrj83mxz";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ libtoxcore nlohmann_json libsodium zeromq ]
|
buildInputs = [ libtoxcore nlohmann_json libsodium zeromq ]
|
||||||
++ if_systemd systemd
|
++ optionals stdenv.isLinux [ libcap systemd ];
|
||||||
++ optional (stdenv.system != "x86_64-darwin") libcap;
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
cmakeFlags = optional stdenv.isLinux [ "-DSYSTEMD=1" ];
|
cmakeFlags = optional stdenv.isLinux [ "-DSYSTEMD=1" ];
|
||||||
|
@ -5218,7 +5218,7 @@ with pkgs;
|
|||||||
|
|
||||||
torsocks = callPackage ../tools/security/tor/torsocks.nix { };
|
torsocks = callPackage ../tools/security/tor/torsocks.nix { };
|
||||||
|
|
||||||
toxvpn = callPackage ../tools/networking/toxvpn { };
|
toxvpn = callPackage ../tools/networking/toxvpn { libtoxcore = libtoxcore_0_1; };
|
||||||
|
|
||||||
tpmmanager = callPackage ../applications/misc/tpmmanager { };
|
tpmmanager = callPackage ../applications/misc/tpmmanager { };
|
||||||
|
|
||||||
@ -10360,9 +10360,12 @@ with pkgs;
|
|||||||
|
|
||||||
libtorrentRasterbar = callPackage ../development/libraries/libtorrent-rasterbar { };
|
libtorrentRasterbar = callPackage ../development/libraries/libtorrent-rasterbar { };
|
||||||
|
|
||||||
|
# this is still the new version of the old API
|
||||||
libtoxcore-new = callPackage ../development/libraries/libtoxcore/new-api.nix { };
|
libtoxcore-new = callPackage ../development/libraries/libtoxcore/new-api.nix { };
|
||||||
|
|
||||||
libtoxcore = callPackage ../development/libraries/libtoxcore { };
|
inherit (callPackages ../development/libraries/libtoxcore {})
|
||||||
|
libtoxcore_0_1 libtoxcore_0_2;
|
||||||
|
libtoxcore = libtoxcore_0_2;
|
||||||
|
|
||||||
libtap = callPackage ../development/libraries/libtap { };
|
libtap = callPackage ../development/libraries/libtap { };
|
||||||
|
|
||||||
@ -17467,7 +17470,7 @@ with pkgs;
|
|||||||
|
|
||||||
qtbitcointrader = callPackage ../applications/misc/qtbitcointrader { };
|
qtbitcointrader = callPackage ../applications/misc/qtbitcointrader { };
|
||||||
|
|
||||||
qtox = libsForQt5.callPackage ../applications/networking/instant-messengers/qtox { ffmpeg = ffmpeg_2; };
|
qtox = libsForQt5.callPackage ../applications/networking/instant-messengers/qtox { };
|
||||||
|
|
||||||
qtpass = libsForQt5.callPackage ../applications/misc/qtpass { };
|
qtpass = libsForQt5.callPackage ../applications/misc/qtpass { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user