diff options
author | Peter Hoeg <peter@speartail.com> | 2017-02-14 14:57:48 +0800 |
---|---|---|
committer | Peter Hoeg <peter@speartail.com> | 2017-02-14 14:57:48 +0800 |
commit | 8cef304ede7f8d9d3647dcb885e05df9d097469c (patch) | |
tree | c57fd8dff02333763ada03aa4b99f73452a1e239 /pkgs/development/libraries/libtoxcore/default.nix | |
parent | 4450327c062a41f7df2f6756057df4ebb6548011 (diff) | |
download | nixpkgs-8cef304ede7f8d9d3647dcb885e05df9d097469c.tar nixpkgs-8cef304ede7f8d9d3647dcb885e05df9d097469c.tar.gz nixpkgs-8cef304ede7f8d9d3647dcb885e05df9d097469c.tar.bz2 nixpkgs-8cef304ede7f8d9d3647dcb885e05df9d097469c.tar.lz nixpkgs-8cef304ede7f8d9d3647dcb885e05df9d097469c.tar.xz nixpkgs-8cef304ede7f8d9d3647dcb885e05df9d097469c.tar.zst nixpkgs-8cef304ede7f8d9d3647dcb885e05df9d097469c.zip |
libtoxcore: init at 0.1.6 and move old versions away
Diffstat (limited to 'pkgs/development/libraries/libtoxcore/default.nix')
-rw-r--r-- | pkgs/development/libraries/libtoxcore/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libtoxcore/default.nix b/pkgs/development/libraries/libtoxcore/default.nix new file mode 100644 index 00000000000..3a00408c7ca --- /dev/null +++ b/pkgs/development/libraries/libtoxcore/default.nix @@ -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; + }; +} |