Merge pull request #105065 from SuperSandro2000/qtox-darwin

This commit is contained in:
Sandro 2020-12-09 20:42:54 +01:00 committed by GitHub
commit 2789f6de63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 24 deletions

View File

@ -1,24 +1,19 @@
{ stdenv, mkDerivation, lib, fetchFromGitHub, cmake, pkgconfig { stdenv, mkDerivation, fetchFromGitHub, cmake, pkg-config, perl
, libtoxcore , libtoxcore, libpthreadstubs, libXdmcp, libXScrnSaver
, libpthreadstubs, libXdmcp, libXScrnSaver
, qtbase, qtsvg, qttools, qttranslations , qtbase, qtsvg, qttools, qttranslations
, ffmpeg_3, filter-audio, libexif, libsodium, libopus , ffmpeg_3, filter-audio, libexif, libsodium, libopus
, libvpx, openal, pcre, qrencode, sqlcipher , libvpx, openal, pcre, qrencode, sqlcipher
, AVFoundation ? null }: , AVFoundation }:
let mkDerivation rec {
version = "1.17.3";
rev = "v${version}";
in mkDerivation {
pname = "qtox"; pname = "qtox";
inherit version; version = "1.17.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "qTox"; owner = "qTox";
repo = "qTox"; repo = "qTox";
rev = "v${version}";
sha256 = "19xgw9bqirxbgvj5cdh20qxh61pkwk838lq1l78n6py1qrs7z5wp"; sha256 = "19xgw9bqirxbgvj5cdh20qxh61pkwk838lq1l78n6py1qrs7z5wp";
inherit rev;
}; };
buildInputs = [ buildInputs = [
@ -27,25 +22,24 @@ in mkDerivation {
qtbase qtsvg qttranslations qtbase qtsvg qttranslations
ffmpeg_3 filter-audio libexif libopus libsodium ffmpeg_3 filter-audio libexif libopus libsodium
libvpx openal pcre qrencode sqlcipher libvpx openal pcre qrencode sqlcipher
] ++ lib.optionals stdenv.isDarwin [ AVFoundation] ; ] ++ stdenv.lib.optionals stdenv.isDarwin [ AVFoundation] ;
nativeBuildInputs = [ cmake pkgconfig qttools ]; nativeBuildInputs = [ cmake pkg-config qttools ]
++ stdenv.lib.optionals stdenv.isDarwin [ perl ];
enableParallelBuilding = true;
cmakeFlags = [ cmakeFlags = [
"-DGIT_DESCRIBE=${rev}" "-DGIT_DESCRIBE=v${version}"
"-DENABLE_STATUSNOTIFIER=False" "-DENABLE_STATUSNOTIFIER=False"
"-DENABLE_GTK_SYSTRAY=False" "-DENABLE_GTK_SYSTRAY=False"
"-DENABLE_APPINDICATOR=False" "-DENABLE_APPINDICATOR=False"
"-DTIMESTAMP=1" "-DTIMESTAMP=1"
]; ];
meta = with lib; { meta = with stdenv.lib; {
description = "Qt Tox client"; description = "Qt Tox client";
homepage = "https://tox.chat"; homepage = "https://tox.chat";
license = licenses.gpl3; license = licenses.gpl3;
maintainers = with maintainers; [ akaWolf peterhoeg ]; maintainers = with maintainers; [ akaWolf peterhoeg ];
platforms = platforms.all; platforms = platforms.all;
}; };
} }

View File

@ -6,7 +6,7 @@
with frameworks; with libs; { with frameworks; with libs; {
AGL = { inherit Carbon OpenGL; }; AGL = { inherit Carbon OpenGL; };
AVFoundation = { inherit ApplicationServices CoreGraphics; }; AVFoundation = { inherit ApplicationServices CoreGraphics CoreMedia MediaToolbox; };
AVKit = {}; AVKit = {};
Accounts = {}; Accounts = {};
AddressBook = { inherit libobjc Carbon ContactsPersistence; }; AddressBook = { inherit libobjc Carbon ContactsPersistence; };

View File

@ -23605,7 +23605,9 @@ in
qtemu = libsForQt5.callPackage ../applications/virtualization/qtemu { }; qtemu = libsForQt5.callPackage ../applications/virtualization/qtemu { };
qtox = libsForQt5.callPackage ../applications/networking/instant-messengers/qtox { }; qtox = libsForQt5.callPackage ../applications/networking/instant-messengers/qtox {
inherit (darwin.apple_sdk.frameworks) AVFoundation;
};
qtpass = libsForQt5.callPackage ../applications/misc/qtpass { }; qtpass = libsForQt5.callPackage ../applications/misc/qtpass { };