diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/networking/instant-messengers/qtox/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/networking/instant-messengers/qtox/default.nix | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/networking/instant-messengers/qtox/default.nix b/nixpkgs/pkgs/applications/networking/instant-messengers/qtox/default.nix new file mode 100644 index 000000000000..656ddade11f8 --- /dev/null +++ b/nixpkgs/pkgs/applications/networking/instant-messengers/qtox/default.nix @@ -0,0 +1,78 @@ +{ lib +, stdenv +, mkDerivation +, fetchFromGitHub +, cmake +, pkg-config +, perl +, libtoxcore +, libpthreadstubs +, libXdmcp +, libXScrnSaver +, qtbase +, qtsvg +, qttools +, qttranslations +, ffmpeg +, filter-audio +, libexif +, libsodium +, libopus +, libvpx +, openal +, pcre +, qrencode +, sqlcipher +, AVFoundation +}: + +mkDerivation rec { + pname = "qtox"; + version = "1.17.3"; + + src = fetchFromGitHub { + owner = "qTox"; + repo = "qTox"; + rev = "v${version}"; + sha256 = "19xgw9bqirxbgvj5cdh20qxh61pkwk838lq1l78n6py1qrs7z5wp"; + }; + + buildInputs = [ + libtoxcore + libpthreadstubs + libXdmcp + libXScrnSaver + qtbase + qtsvg + qttranslations + ffmpeg + filter-audio + libexif + libopus + libsodium + libvpx + openal + pcre + qrencode + sqlcipher + ] ++ lib.optionals stdenv.isDarwin [ AVFoundation ]; + + nativeBuildInputs = [ cmake pkg-config qttools ] + ++ lib.optionals stdenv.isDarwin [ perl ]; + + cmakeFlags = [ + "-DGIT_DESCRIBE=v${version}" + "-DENABLE_STATUSNOTIFIER=False" + "-DENABLE_GTK_SYSTRAY=False" + "-DENABLE_APPINDICATOR=False" + "-DTIMESTAMP=1" + ]; + + meta = with lib; { + description = "Qt Tox client"; + homepage = "https://tox.chat"; + license = licenses.gpl3; + maintainers = with maintainers; [ akaWolf peterhoeg ]; + platforms = platforms.all; + }; +} |