lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #39147 from peterhoeg/u/tox

tox: libtoxcore and assorted tox client updates

authored by

Peter Hoeg and committed by
GitHub
12d89a7e cf194a93

+96 -83
+17 -12
pkgs/applications/networking/instant-messengers/qtox/default.nix
··· 1 - { mkDerivation, lib, fetchFromGitHub, cmake, pkgconfig, 2 - libtoxcore, 3 - libpthreadstubs, libXdmcp, libXScrnSaver, 4 - qtbase, qtsvg, qttools, qttranslations, 5 - ffmpeg, filter-audio, libexif, libsodium, libopus, 6 - libvpx, openal, pcre, qrencode, sqlcipher }: 1 + { stdenv, mkDerivation, lib, fetchFromGitHub, cmake, pkgconfig 2 + , libtoxcore 3 + , libpthreadstubs, libXdmcp, libXScrnSaver 4 + , qtbase, qtsvg, qttools, qttranslations 5 + , ffmpeg, filter-audio, libexif, libsodium, libopus 6 + , libvpx, openal, pcre, qrencode, sqlcipher 7 + , AVFoundation ? null }: 8 + 9 + let 10 + version = "1.15.0"; 11 + rev = "v${version}"; 7 12 8 - mkDerivation rec { 13 + in mkDerivation rec { 9 14 name = "qtox-${version}"; 10 - version = "1.13.0"; 11 15 12 16 src = fetchFromGitHub { 13 17 owner = "qTox"; 14 18 repo = "qTox"; 15 - rev = "v${version}"; 16 - sha256 = "08x71p23d0sp0w11k8z3wf3k56iclmdq9x652n8ggidgyrdi9f6y"; 19 + sha256 = "1garwnlmg452b0bwx36rsh08s15q3zylb26l01iiwg4l9vcaldh9"; 20 + inherit rev; 17 21 }; 18 22 19 23 buildInputs = [ ··· 22 26 qtbase qtsvg qttranslations 23 27 ffmpeg filter-audio libexif libopus libsodium 24 28 libvpx openal pcre qrencode sqlcipher 25 - ]; 29 + ] ++ lib.optionals stdenv.isDarwin [ AVFoundation] ; 26 30 27 31 nativeBuildInputs = [ cmake pkgconfig qttools ]; 28 32 29 33 enableParallelBuilding = true; 30 34 31 35 cmakeFlags = [ 32 - "-DGIT_DESCRIBE=${version}" 36 + "-DGIT_DESCRIBE=${rev}" 33 37 "-DENABLE_STATUSNOTIFIER=False" 34 38 "-DENABLE_GTK_SYSTRAY=False" 35 39 "-DENABLE_APPINDICATOR=False" 40 + "-DTIMESTAMP=1" 36 41 ]; 37 42 38 43 meta = with lib; {
+10 -8
pkgs/applications/networking/instant-messengers/ratox/default.nix
··· 5 5 6 6 let 7 7 configFile = optionalString (conf!=null) (builtins.toFile "config.h" conf); 8 - in 9 8 10 - stdenv.mkDerivation rec { 11 - name = "ratox-0.4"; 9 + in stdenv.mkDerivation rec { 10 + name = "ratox-0.4.20180303"; 12 11 13 12 src = fetchgit { 14 13 url = "git://git.2f30.org/ratox.git"; 15 - rev = "0db821b7bd566f6cfdc0cc5a7bbcc3e5e92adb4c"; 16 - sha256 = "0wmf8hydbcq4bkpsld9vnqw4zfzf3f04vhgwy17nd4p5p389fbl5"; 14 + rev = "269f7f97fb374a8f9c0b82195c21de15b81ddbbb"; 15 + sha256 = "0bpn37h8jvsqd66fkba8ky42nydc8acawa5x31yxqlxc8mc66k74"; 17 16 }; 18 17 19 - patches = [ ./ldlibs.patch ]; 18 + buildInputs = [ libtoxcore ]; 20 19 21 - buildInputs = [ libtoxcore ]; 20 + preConfigure = '' 21 + substituteInPlace config.mk \ 22 + --replace '-lsodium -lopus -lvpx ' "" 22 23 23 - preConfigure = optionalString (conf!=null) "cp ${configFile} config.def.h"; 24 + ${optionalString (conf!=null) "cp ${configFile} config.def.h"} 25 + ''; 24 26 25 27 makeFlags = [ "PREFIX=$(out)" ]; 26 28
-5
pkgs/applications/networking/instant-messengers/ratox/ldlibs.patch
··· 1 - --- a/config.mk 2 - +++ b/config.mk 3 - @@ -13 +13 @@ LDFLAGS = -L/usr/local/lib 4 - -LDLIBS = -ltoxcore -ltoxav -ltoxencryptsave -lsodium -lopus -lvpx -lm -lpthread 5 - +LDLIBS = -ltoxcore -ltoxav -ltoxencryptsave -lm -lpthread
+2 -2
pkgs/applications/networking/instant-messengers/toxic/default.nix
··· 4 4 5 5 stdenv.mkDerivation rec { 6 6 name = "toxic-${version}"; 7 - version = "0.7.2"; 7 + version = "0.8.2"; 8 8 9 9 src = fetchFromGitHub { 10 10 owner = "Tox"; 11 11 repo = "toxic"; 12 12 rev = "v${version}"; 13 - sha256 = "1kws6bx5va1wc0k6pqihrla91vicxk4zqghvxiylgfbjr1jnkvwc"; 13 + sha256 = "0fwmk945nip98m3md58y3ibjmzfq25hns3xf0bmbc6fjpww8d5p5"; 14 14 }; 15 15 16 16 makeFlags = [ "PREFIX=$(out)"];
+15 -9
pkgs/applications/networking/instant-messengers/utox/default.nix
··· 1 - { stdenv, fetchFromGitHub, cmake, pkgconfig, libtoxcore, filter-audio, dbus, libvpx, libX11, openal, freetype, libv4l 2 - , libXrender, fontconfig, libXext, libXft, utillinux, git, libsodium, libopus, check }: 1 + { stdenv, lib, fetchFromGitHub, check, cmake, pkgconfig 2 + , libtoxcore, filter-audio, dbus, libvpx, libX11, openal, freetype, libv4l 3 + , libXrender, fontconfig, libXext, libXft, utillinux, libsodium, libopus }: 3 4 4 5 stdenv.mkDerivation rec { 5 6 name = "utox-${version}"; 6 7 7 - version = "0.16.1"; 8 + version = "0.17.0"; 8 9 9 10 src = fetchFromGitHub { 10 11 owner = "uTox"; 11 12 repo = "uTox"; 12 13 rev = "v${version}"; 13 - sha256 = "0ak10925v67yaga2pw9yzp0xkb5j1181srfjdyqpd29v8mi9j828"; 14 + sha256 = "12wbq883il7ikldayh8hm0cjfrkp45vn05xx9s1jbfz6gmkidyar"; 15 + fetchSubmodules = true; 14 16 }; 15 17 16 18 buildInputs = [ ··· 20 22 ]; 21 23 22 24 nativeBuildInputs = [ 23 - cmake git pkgconfig check 25 + check cmake pkgconfig 24 26 ]; 25 27 26 28 cmakeFlags = [ 27 - "-DENABLE_UPDATER=OFF" 28 - ] ++ stdenv.lib.optional (!doCheck) "-DENABLE_TESTS=OFF"; 29 + "-DENABLE_AUTOUPDATE=OFF" 30 + ] ++ lib.optional (doCheck) "-DENABLE_TESTS=ON"; 29 31 30 - doCheck = true; 32 + doCheck = stdenv.isLinux; 31 33 32 - checkTarget = "test"; 34 + checkPhase = '' 35 + runHook preCheck 36 + ctest -VV 37 + runHook postCheck 38 + ''; 33 39 34 40 meta = with stdenv.lib; { 35 41 description = "Lightweight Tox client";
+38 -33
pkgs/development/libraries/libtoxcore/default.nix
··· 1 1 { stdenv, fetchFromGitHub, cmake, libsodium, ncurses, libopus, libmsgpack 2 2 , libvpx, check, libconfig, pkgconfig }: 3 3 4 - stdenv.mkDerivation rec { 5 - name = "libtoxcore-${version}"; 6 - version = "0.1.11"; 4 + let 5 + generic = { version, sha256 }: 6 + stdenv.mkDerivation rec { 7 + name = "libtoxcore-${version}"; 7 8 8 - src = fetchFromGitHub { 9 - owner = "TokTok"; 10 - repo = "c-toxcore"; 11 - rev = "v${version}"; 12 - sha256 = "1fya5gfiwlpk6fxhalv95n945ymvp2iidiyksrjw1xw95fzsp1ij"; 13 - }; 9 + src = fetchFromGitHub { 10 + owner = "TokTok"; 11 + repo = "c-toxcore"; 12 + rev = "v${version}"; 13 + inherit sha256; 14 + }; 14 15 15 - cmakeFlags = [ 16 - "-DBUILD_NTOX=ON" 17 - "-DDHT_BOOTSTRAP=ON" 18 - "-DBOOTSTRAP_DAEMON=ON" 19 - ]; 16 + cmakeFlags = [ 17 + "-DBUILD_NTOX=ON" 18 + "-DDHT_BOOTSTRAP=ON" 19 + "-DBOOTSTRAP_DAEMON=ON" 20 + ]; 20 21 21 - buildInputs = [ 22 - libsodium libmsgpack ncurses libconfig 23 - ] ++ stdenv.lib.optionals (!stdenv.isAarch32) [ 24 - libopus 25 - libvpx 26 - ]; 22 + buildInputs = [ 23 + libsodium libmsgpack ncurses libconfig 24 + ] ++ stdenv.lib.optionals (!stdenv.isAarch32) [ 25 + libopus libvpx 26 + ]; 27 27 28 - nativeBuildInputs = [ cmake pkgconfig ]; 28 + nativeBuildInputs = [ cmake pkgconfig ]; 29 29 30 - enableParallelBuilding = true; 30 + enableParallelBuilding = true; 31 31 32 - checkInputs = [ check ]; 32 + meta = with stdenv.lib; { 33 + description = "P2P FOSS instant messaging application aimed to replace Skype"; 34 + homepage = https://tox.chat; 35 + license = licenses.gpl3Plus; 36 + maintainers = with maintainers; [ peterhoeg ]; 37 + platforms = platforms.all; 38 + }; 39 + }; 33 40 34 - checkPhase = "ctest"; 41 + in rec { 42 + libtoxcore_0_1 = generic { 43 + version = "0.1.11"; 44 + sha256 = "1fya5gfiwlpk6fxhalv95n945ymvp2iidiyksrjw1xw95fzsp1ij"; 45 + }; 35 46 36 - # for some reason the tests are not running - it says "No tests found!!" 37 - doCheck = true; 38 - 39 - meta = with stdenv.lib; { 40 - description = "P2P FOSS instant messaging application aimed to replace Skype"; 41 - homepage = https://tox.chat; 42 - license = licenses.gpl3Plus; 43 - maintainers = with maintainers; [ peterhoeg ]; 44 - platforms = platforms.all; 47 + libtoxcore_0_2 = generic { 48 + version = "0.2.2"; 49 + sha256 = "1463grbbv009pj2g6dbnyk4lr871vw41962m63v21mmp6dkrr7r5"; 45 50 }; 46 51 }
+8 -11
pkgs/tools/networking/toxvpn/default.nix
··· 1 1 { stdenv, fetchFromGitHub, cmake, nlohmann_json, 2 - libtoxcore, libsodium, systemd, libcap, zeromq }: 2 + libtoxcore, libsodium, libcap, zeromq, 3 + systemd ? null }: 3 4 4 5 with stdenv.lib; 5 6 6 - let 7 - systemdOrNull = if stdenv.system == "x86_64-darwin" then null else systemd; 8 - if_systemd = optional (systemdOrNull != null); 9 - in stdenv.mkDerivation rec { 10 - name = "toxvpn-${version}"; 11 - version = "2017-06-25"; 7 + stdenv.mkDerivation rec { 8 + name = "toxvpn-2018-04-17"; 12 9 13 10 src = fetchFromGitHub { 14 11 owner = "cleverca22"; 15 12 repo = "toxvpn"; 16 - rev = "7bd6f169d69c511affa8c9672e8f794e4e205a44"; 17 - sha256 = "1km8hkrxmrnca1b49vbw5kyldayaln5plvz78vhf8325r6c5san0"; 13 + rev = "dc766f98888f500ea51f002f59007eac3f3a0a06"; 14 + sha256 = "19br3fmrdm45fvymj9kvwikkn8m657yd5fkhx6grv35ckrj83mxz"; 18 15 }; 19 16 20 17 buildInputs = [ libtoxcore nlohmann_json libsodium zeromq ] 21 - ++ if_systemd systemd 22 - ++ optional (stdenv.system != "x86_64-darwin") libcap; 18 + ++ optionals stdenv.isLinux [ libcap systemd ]; 19 + 23 20 nativeBuildInputs = [ cmake ]; 24 21 25 22 cmakeFlags = optional stdenv.isLinux [ "-DSYSTEMD=1" ];
+6 -3
pkgs/top-level/all-packages.nix
··· 5218 5218 5219 5219 torsocks = callPackage ../tools/security/tor/torsocks.nix { }; 5220 5220 5221 - toxvpn = callPackage ../tools/networking/toxvpn { }; 5221 + toxvpn = callPackage ../tools/networking/toxvpn { libtoxcore = libtoxcore_0_1; }; 5222 5222 5223 5223 tpmmanager = callPackage ../applications/misc/tpmmanager { }; 5224 5224 ··· 10360 10360 10361 10361 libtorrentRasterbar = callPackage ../development/libraries/libtorrent-rasterbar { }; 10362 10362 10363 + # this is still the new version of the old API 10363 10364 libtoxcore-new = callPackage ../development/libraries/libtoxcore/new-api.nix { }; 10364 10365 10365 - libtoxcore = callPackage ../development/libraries/libtoxcore { }; 10366 + inherit (callPackages ../development/libraries/libtoxcore {}) 10367 + libtoxcore_0_1 libtoxcore_0_2; 10368 + libtoxcore = libtoxcore_0_2; 10366 10369 10367 10370 libtap = callPackage ../development/libraries/libtap { }; 10368 10371 ··· 17467 17470 17468 17471 qtbitcointrader = callPackage ../applications/misc/qtbitcointrader { }; 17469 17472 17470 - qtox = libsForQt5.callPackage ../applications/networking/instant-messengers/qtox { ffmpeg = ffmpeg_2; }; 17473 + qtox = libsForQt5.callPackage ../applications/networking/instant-messengers/qtox { }; 17471 17474 17472 17475 qtpass = libsForQt5.callPackage ../applications/misc/qtpass { }; 17473 17476