nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 pkg-config,
7 perl,
8 kdePackages,
9 libtoxcore,
10 libpthreadstubs,
11 libXdmcp,
12 libXScrnSaver,
13 ffmpeg,
14 filter-audio,
15 libexif,
16 libsodium,
17 libopus,
18 libvpx,
19 openal,
20 pcre,
21 qrencode,
22 qt6,
23 sqlcipher,
24}:
25
26stdenv.mkDerivation rec {
27 pname = "qtox";
28 version = "1.18.3";
29
30 src = fetchFromGitHub {
31 owner = "TokTok";
32 repo = "qTox";
33 tag = "v${version}";
34 hash = "sha256-5pH39NsJdt4+ldlbpkvA0n/X/LkEUEv4UL1K/W3BqmM=";
35 };
36
37 buildInputs = [
38 kdePackages.sonnet
39 libtoxcore
40 libpthreadstubs
41 libXdmcp
42 libXScrnSaver
43 ffmpeg
44 filter-audio
45 libexif
46 libopus
47 libsodium
48 libvpx
49 openal
50 pcre
51 qrencode
52 qt6.qtbase
53 qt6.qtsvg
54 sqlcipher
55 ];
56
57 nativeBuildInputs = [
58 cmake
59 pkg-config
60 qt6.qttools
61 qt6.wrapQtAppsHook
62 ]
63 ++ lib.optionals stdenv.hostPlatform.isDarwin [ perl ];
64
65 cmakeFlags = [
66 "-DGIT_DESCRIBE=v${version}"
67 "-DTIMESTAMP=1"
68 ];
69
70 meta = with lib; {
71 broken = stdenv.hostPlatform.isDarwin;
72 description = "Qt Tox client";
73 mainProgram = "qtox";
74 homepage = "https://tox.chat";
75 license = licenses.gpl3;
76 maintainers = with maintainers; [
77 akaWolf
78 peterhoeg
79 ];
80 platforms = platforms.all;
81 };
82}