mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
6edd6f71c7
There are two kinds of changes here: - removing explicit qttranslations path hardcoding from applications that were patched to do it - replacing qttranslations in buildInputs with qttools for packages that really depend on the latter After this, qttranslation is never used outside Qt itself, as it should.
78 lines
1.3 KiB
Nix
78 lines
1.3 KiB
Nix
{ lib
|
|
, stdenv
|
|
, mkDerivation
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, pkg-config
|
|
, perl
|
|
, libtoxcore
|
|
, libpthreadstubs
|
|
, libXdmcp
|
|
, libXScrnSaver
|
|
, qtbase
|
|
, qtsvg
|
|
, qttools
|
|
, ffmpeg
|
|
, filter-audio
|
|
, libexif
|
|
, libsodium
|
|
, libopus
|
|
, libvpx
|
|
, openal
|
|
, pcre
|
|
, qrencode
|
|
, sqlcipher
|
|
, AVFoundation
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "qtox";
|
|
version = "1.17.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "qTox";
|
|
repo = "qTox";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-naKWoodSMw0AEtACvkASFmw9t0H0d2pcqOW79NNTYF0=";
|
|
};
|
|
|
|
buildInputs = [
|
|
libtoxcore
|
|
libpthreadstubs
|
|
libXdmcp
|
|
libXScrnSaver
|
|
qtbase
|
|
qtsvg
|
|
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; {
|
|
broken = stdenv.isDarwin;
|
|
description = "Qt Tox client";
|
|
homepage = "https://tox.chat";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ akaWolf peterhoeg ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|