diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2020-11-26 20:14:13 +0100 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2020-12-09 20:10:52 +0100 |
commit | b224b4db27f88deb08216e8b59e004ad210a2515 (patch) | |
tree | 14fc5db538bdbb780e868de5619d71f2cf443585 /pkgs/applications/networking/instant-messengers/qtox | |
parent | 2959bb702852f707e6eacc16c9c5bbc919cc58ea (diff) |
qtox: Fix compilation on darwin, remove parallelBuilds, cleanups
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/qtox')
-rw-r--r-- | pkgs/applications/networking/instant-messengers/qtox/default.nix | 38 |
1 files changed, 16 insertions, 22 deletions
diff --git a/pkgs/applications/networking/instant-messengers/qtox/default.nix b/pkgs/applications/networking/instant-messengers/qtox/default.nix index 952182def26d..2605d6dc0818 100644 --- a/pkgs/applications/networking/instant-messengers/qtox/default.nix +++ b/pkgs/applications/networking/instant-messengers/qtox/default.nix @@ -1,24 +1,19 @@ -{ stdenv, mkDerivation, lib, fetchFromGitHub, cmake, pkgconfig -, libtoxcore -, libpthreadstubs, libXdmcp, libXScrnSaver +{ stdenv, mkDerivation, fetchFromGitHub, cmake, pkg-config, perl +, libtoxcore, libpthreadstubs, libXdmcp, libXScrnSaver , qtbase, qtsvg, qttools, qttranslations , ffmpeg_3, filter-audio, libexif, libsodium, libopus , libvpx, openal, pcre, qrencode, sqlcipher -, AVFoundation ? null }: +, AVFoundation }: -let - version = "1.17.3"; - rev = "v${version}"; - -in mkDerivation { +mkDerivation rec { pname = "qtox"; - inherit version; + version = "1.17.3"; src = fetchFromGitHub { - owner = "qTox"; - repo = "qTox"; + owner = "qTox"; + repo = "qTox"; + rev = "v${version}"; sha256 = "19xgw9bqirxbgvj5cdh20qxh61pkwk838lq1l78n6py1qrs7z5wp"; - inherit rev; }; buildInputs = [ @@ -27,25 +22,24 @@ in mkDerivation { qtbase qtsvg qttranslations ffmpeg_3 filter-audio libexif libopus libsodium libvpx openal pcre qrencode sqlcipher - ] ++ lib.optionals stdenv.isDarwin [ AVFoundation] ; - - nativeBuildInputs = [ cmake pkgconfig qttools ]; + ] ++ stdenv.lib.optionals stdenv.isDarwin [ AVFoundation] ; - enableParallelBuilding = true; + nativeBuildInputs = [ cmake pkg-config qttools ] + ++ stdenv.lib.optionals stdenv.isDarwin [ perl ]; cmakeFlags = [ - "-DGIT_DESCRIBE=${rev}" + "-DGIT_DESCRIBE=v${version}" "-DENABLE_STATUSNOTIFIER=False" "-DENABLE_GTK_SYSTRAY=False" "-DENABLE_APPINDICATOR=False" "-DTIMESTAMP=1" ]; - meta = with lib; { + meta = with stdenv.lib; { description = "Qt Tox client"; - homepage = "https://tox.chat"; - license = licenses.gpl3; + homepage = "https://tox.chat"; + license = licenses.gpl3; maintainers = with maintainers; [ akaWolf peterhoeg ]; - platforms = platforms.all; + platforms = platforms.all; }; } |