git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #8563 from akaWolf/master

Updated qtox to the last version

commit9661e477bcabb8c097250c2e334d89445e02db15 authorArseniy Seroka <jagajaga@users.noreply.github.com> dateWed 1 Jul 2015, 17:16 (11 years ago) parentdd9530c25ee65d
5 files changed+116−30
pkgs/applications/networking/instant-messengers/qtox/default.nix+27−29 pkgs/development/libraries/filter-audio/default.nix+24 pkgs/development/libraries/libtoxcore/new-api/default.nix+60 pkgs/development/libraries/libtoxcore/default.nix → pkgs/development/libraries/libtoxcore/old-api/default.nix pkgs/top-level/all-packages.nix+5−1
pkgs/applications/networking/instant-messengers/qtox/default.nix+27−29
@@ -1,41 +1,38 @@
1−{ stdenv, fetchFromGitHub, pkgconfig, libtoxcore, qt5, openal, opencv
2−, libsodium, libXScrnSaver }:
1+{ stdenv, fetchgit, pkgconfig, libtoxcore-dev, qt5, openal, opencv,
2+ libsodium, libXScrnSaver, glib, gdk_pixbuf, gtk2, cairo,
3+ pango, atk, qrencode, ffmpeg, filter-audio }:
34
4−let
5+stdenv.mkDerivation rec {
6+ name = "qtox-dev-20150624";
57
6− filteraudio = stdenv.mkDerivation rec {
7− name = "filter_audio-20150128";
8−
9− src = fetchFromGitHub {
10− owner = "irungentoo";
11− repo = "filter_audio";
12− rev = "76428a6cda";
13− sha256 = "0c4wp9a7dzbj9ykfkbsxrkkyy0nz7vyr5map3z7q8bmv9pjylbk9";
14− };
15−
16− doCheck = false;
17−
18− makeFlags = "PREFIX=$(out)";
19− };
20−
21−in stdenv.mkDerivation rec {
22− name = "qtox-dev-20150130";
23−
24− src = fetchFromGitHub {
25− owner = "tux3";
26− repo = "qTox";
27− rev = "7574569b3d";
28− sha256 = "0a7zkhl4w2r5ifzs7vwws2lpplp6q5c4jllyf4ld64njgiz6jzip";
8+ src = fetchgit {
9+ url = "https://github.com/tux3/qTox.git";
10+ rev = "9f386135a2cf428d2802b158c70be4beee5abf86";
11+ sha256 = "1m2y50q5yim1q75k48cy5daq5qm77cvb3kcla7lpqv54xnfdwxk8";
2912 };
3013
3114 buildInputs =
3215 [
33− libtoxcore openal opencv libsodium filteraudio
34− qt5.base qt5.tools libXScrnSaver
16+ libtoxcore-dev openal opencv libsodium filter-audio
17+ qt5.base qt5.tools libXScrnSaver glib gtk2 cairo
18+ pango atk qrencode ffmpeg qt5.translations
3519 ];
20+
3621 nativeBuildInputs = [ pkgconfig ];
3722
38− configurePhase = "qmake";
23+ preConfigure = ''
24+ export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags glib-2.0)"
25+ export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags gdk-pixbuf-2.0)"
26+ export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags gtk+-2.0)"
27+ export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags cairo)"
28+ export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags pango)"
29+ export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags atk)"
30+ '';
31+
32+ configurePhase = ''
33+ runHook preConfigure
34+ qmake
35+ '';
3936
4037 installPhase = ''
4138 mkdir -p $out/bin
@@ -49,3 +46,4 @@ in stdenv.mkDerivation rec {
4946 platforms = platforms.all;
5047 };
5148}
49+
pkgs/development/libraries/filter-audio/default.nixnew file+24
@@ -0,0 +1,24 @@
1+{ stdenv, fetchgit }:
2+
3+stdenv.mkDerivation rec {
4+ name = "filter-audio-20150624";
5+
6+ src = fetchgit {
7+ url = "https://github.com/irungentoo/filter_audio.git";
8+ rev = "612c5a102550c614e4c8f859e753ea64c0b7250c";
9+ sha256 = "0bmf8dxnr4vb6y36lvlwqd5x68r4cbsd625kbw3pypm5yqp0n5na";
10+ };
11+
12+ doCheck = false;
13+
14+ makeFlags = "PREFIX=$(out)";
15+
16+ meta = with stdenv.lib; {
17+ description = "Lightweight audio filtering library made from webrtc code";
18+ license = licenses.bsd3;
19+ maintainers = with maintainers; [ viric jgeerds ];
20+ platforms = platforms.all;
21+ };
22+}
23+
24+
pkgs/development/libraries/libtoxcore/new-api/default.nixnew file+60
@@ -0,0 +1,60 @@
1+{ stdenv, fetchFromGitHub, autoconf, libtool, automake, libsodium, ncurses, libopus
2+, libvpx, check, libconfig, pkgconfig }:
3+
4+stdenv.mkDerivation rec {
5+ name = "tox-core-dev-20150629";
6+
7+ src = fetchFromGitHub {
8+ owner = "irungentoo";
9+ repo = "toxcore";
10+ rev = "219fabc0f5dbaac7968cb7728d25dface3ebb2ea";
11+ sha256 = "1rsnxa5b7i2zclx0kzbf4a5mds0jfkvfjz1s4whzk7rf8w3vpqkh";
12+ };
13+
14+ NIX_LDFLAGS = "-lgcc_s";
15+
16+ postPatch = ''
17+ # within Nix chroot builds, localhost is unresolvable
18+ sed -i -e '/DEFTESTCASE(addr_resolv_localhost)/d' \
19+ auto_tests/network_test.c
20+ # takes WAAAY too long (~10 minutes) and would timeout
21+ sed -i -e '/DEFTESTCASE[^(]*(many_clients\>/d' \
22+ auto_tests/tox_test.c
23+ '';
24+
25+ preConfigure = ''
26+ autoreconf -i
27+ '';
28+
29+ configureFlags = [
30+ "--with-libsodium-headers=${libsodium}/include"
31+ "--with-libsodium-libs=${libsodium}/lib"
32+ "--enable-ntox"
33+ "--enable-daemon"
34+ ];
35+
36+ buildInputs = [
37+ autoconf libtool automake libsodium ncurses
38+ check libconfig pkgconfig
39+ ] ++ stdenv.lib.optionals (!stdenv.isArm) [
40+ libopus
41+ ];
42+
43+ propagatedBuildInputs = stdenv.lib.optionals (!stdenv.isArm) [ libvpx ];
44+
45+ # Some tests fail randomly due to timeout. This kind of problem is well known
46+ # by upstream: https://github.com/irungentoo/toxcore/issues/{950,1054}
47+ # They don't recommend running tests on 50core machines with other cpu-bound
48+ # tests running in parallel.
49+ #
50+ # NOTE: run the tests locally on your machine before upgrading this package!
51+ doCheck = false;
52+
53+ meta = with stdenv.lib; {
54+ description = "P2P FOSS instant messaging application aimed to replace Skype with crypto";
55+ license = licenses.gpl3Plus;
56+ maintainers = with maintainers; [ viric jgeerds ];
57+ platforms = platforms.all;
58+ };
59+}
60+
pkgs/development/libraries/libtoxcore/default.nix → pkgs/development/libraries/libtoxcore/old-api/default.nixrenamed

The content is the same.

pkgs/top-level/all-packages.nix+5−1
@@ -6116,6 +6116,8 @@ let
61166116 fftwSinglePrec = fftw.override { precision = "single"; };
61176117 fftwFloat = fftwSinglePrec; # the configure option is just an alias
61186118
6119+ filter-audio = callPackage ../development/libraries/filter-audio {};
6120+
61196121 fish-fillets-ng = callPackage ../games/fish-fillets-ng {};
61206122
61216123 flann = callPackage ../development/libraries/flann { };
@@ -7266,7 +7268,9 @@ let
72667268 else stdenv;
72677269 };
72687270
7269− libtoxcore = callPackage ../development/libraries/libtoxcore { };
7271+ libtoxcore = callPackage ../development/libraries/libtoxcore/old-api { };
7272+
7273+ libtoxcore-dev = callPackage ../development/libraries/libtoxcore/new-api { };
72707274
72717275 libtsm = callPackage ../development/libraries/libtsm {
72727276 automake = automake114x;