Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #8563 from akaWolf/master

Updated qtox to the last version

+116 -30
+27 -29
pkgs/applications/networking/instant-messengers/qtox/default.nix
··· 1 - { stdenv, fetchFromGitHub, pkgconfig, libtoxcore, qt5, openal, opencv 2 - , libsodium, libXScrnSaver }: 3 - 4 - let 5 - 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 - }; 1 + { stdenv, fetchgit, pkgconfig, libtoxcore-dev, qt5, openal, opencv, 2 + libsodium, libXScrnSaver, glib, gdk_pixbuf, gtk2, cairo, 3 + pango, atk, qrencode, ffmpeg, filter-audio }: 20 4 21 - in stdenv.mkDerivation rec { 22 - name = "qtox-dev-20150130"; 5 + stdenv.mkDerivation rec { 6 + name = "qtox-dev-20150624"; 23 7 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"; 29 12 }; 30 13 31 14 buildInputs = 32 15 [ 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 35 19 ]; 20 + 36 21 nativeBuildInputs = [ pkgconfig ]; 37 22 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 + ''; 39 36 40 37 installPhase = '' 41 38 mkdir -p $out/bin ··· 49 46 platforms = platforms.all; 50 47 }; 51 48 } 49 +
+24
pkgs/development/libraries/filter-audio/default.nix
··· 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/default.nix pkgs/development/libraries/libtoxcore/old-api/default.nix
+60
pkgs/development/libraries/libtoxcore/new-api/default.nix
··· 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 +
+5 -1
pkgs/top-level/all-packages.nix
··· 6116 6116 fftwSinglePrec = fftw.override { precision = "single"; }; 6117 6117 fftwFloat = fftwSinglePrec; # the configure option is just an alias 6118 6118 6119 + filter-audio = callPackage ../development/libraries/filter-audio {}; 6120 + 6119 6121 fish-fillets-ng = callPackage ../games/fish-fillets-ng {}; 6120 6122 6121 6123 flann = callPackage ../development/libraries/flann { }; ··· 7266 7268 else stdenv; 7267 7269 }; 7268 7270 7269 - libtoxcore = callPackage ../development/libraries/libtoxcore { }; 7271 + libtoxcore = callPackage ../development/libraries/libtoxcore/old-api { }; 7272 + 7273 + libtoxcore-dev = callPackage ../development/libraries/libtoxcore/new-api { }; 7270 7274 7271 7275 libtsm = callPackage ../development/libraries/libtsm { 7272 7276 automake = automake114x;