libtoxcore: init at 0.1.6 and move old versions away

This commit is contained in:
Peter Hoeg 2017-02-14 14:57:48 +08:00
parent 4450327c06
commit 8cef304ede
4 changed files with 49 additions and 6 deletions

View File

@ -0,0 +1,41 @@
{ stdenv, fetchFromGitHub, cmake, libsodium, ncurses, libopus, libmsgpack
, libvpx, check, libconfig, pkgconfig }:
stdenv.mkDerivation rec {
name = "libtoxcore-${version}";
version = "0.1.6";
src = fetchFromGitHub {
owner = "TokTok";
repo = "c-toxcore";
rev = "v${version}";
sha256 = "0a00gjar6ibaqa2cm81867nk7chsd141v360268v7ym2mxwa0ya6";
};
cmakeFlags = [
"-DBUILD_NTOX=ON"
"-DDHT_BOOTSTRAP=ON"
"-DBOOTSTRAP_DAEMON=ON"
];
buildInputs = [
libsodium libmsgpack ncurses
] ++ stdenv.lib.optionals (!stdenv.isArm) [
libopus
libvpx
];
nativeBuildInputs = [ cmake pkgconfig ];
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 with crypto";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ peterhoeg ];
platforms = platforms.all;
};
}

View File

@ -2,7 +2,7 @@
, libvpx, check, libconfig, pkgconfig }:
stdenv.mkDerivation rec {
name = "tox-core-dev-20160727";
name = "tox-core-new-20160727";
src = fetchFromGitHub {
owner = "irungentoo";

View File

@ -4,9 +4,9 @@
let
version = "4c220e336330213b151a0c20307d0a1fce04ac9e";
date = "20150126";
in
stdenv.mkDerivation rec {
name = "tox-core-${date}-${builtins.substring 0 7 version}";
in stdenv.mkDerivation rec {
name = "tox-core-old-${date}-${builtins.substring 0 7 version}";
src = fetchFromGitHub {
owner = "irungentoo";

View File

@ -8581,9 +8581,11 @@ with pkgs;
libtorrentRasterbar_1_0 = callPackage ../development/libraries/libtorrent-rasterbar/1.0.nix { };
libtoxcore = callPackage ../development/libraries/libtoxcore/old-api { };
libtoxcore-old = callPackage ../development/libraries/libtoxcore/old-api.nix { };
libtoxcore-dev = callPackage ../development/libraries/libtoxcore/new-api { };
libtoxcore-new = callPackage ../development/libraries/libtoxcore/new-api.nix { };
libtoxcore = callPackage ../development/libraries/libtoxcore { };
libtap = callPackage ../development/libraries/libtap { };