git.iko.soy/typeable/nixpkgs
on master help sign in
libtoxcore: added new-api version
commit68f4a0f0eaf175eea2f17383105dae7b97d526f2 authorArtjom Vejsel <akawolf0@gmail.com> dateWed 1 Jul 2015, 10:16 (11 years ago) parent6a6ecde
3 files changed+63−1
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+3−1
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+3−1
@@ -7268,7 +7268,9 @@ let
72687268 else stdenv;
72697269 };
72707270
7271− libtoxcore = callPackage ../development/libraries/libtoxcore { };
7271+ libtoxcore = callPackage ../development/libraries/libtoxcore/old-api { };
7272+
7273+ libtoxcore-dev = callPackage ../development/libraries/libtoxcore/new-api { };
72727274
72737275 libtsm = callPackage ../development/libraries/libtsm {
72747276 automake = automake114x;