ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / nh / nheko / package.nix
blob2e1bf3126d756be7d3f35e5e8a9d0a6f1f731f80
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   cmake,
6   asciidoc,
7   pkg-config,
8   boost179,
9   cmark,
10   coeurl,
11   curl,
12   kdsingleapplication,
13   libevent,
14   libsecret,
15   lmdb,
16   lmdbxx,
17   mtxclient,
18   nlohmann_json,
19   olm,
20   re2,
21   spdlog,
22   gst_all_1,
23   libnice,
24   qt6Packages,
27 stdenv.mkDerivation rec {
28   pname = "nheko";
29   version = "0.12.0";
31   src = fetchFromGitHub {
32     owner = "Nheko-Reborn";
33     repo = "nheko";
34     rev = "v${version}";
35     hash = "sha256-hQb+K8ogNj/s6ZO2kgS/sZZ35y4CwMeS3lVeMYNucYQ=";
36   };
38   nativeBuildInputs = [
39     asciidoc
40     cmake
41     lmdbxx
42     pkg-config
43     qt6Packages.wrapQtAppsHook
44   ];
46   buildInputs =
47     [
48       boost179
49       cmark
50       coeurl
51       curl
52       kdsingleapplication
53       libevent
54       libsecret
55       lmdb
56       mtxclient
57       nlohmann_json
58       olm
59       qt6Packages.qtbase
60       qt6Packages.qtimageformats
61       qt6Packages.qtkeychain
62       qt6Packages.qtmultimedia
63       qt6Packages.qttools
64       qt6Packages.qtwayland
65       re2
66       spdlog
67     ]
68     ++ (with gst_all_1; [
69       gstreamer
70       gst-plugins-base
71       (gst-plugins-good.override { qt6Support = true; })
72       gst-plugins-bad
73       libnice
74     ]);
76   cmakeFlags = [
77     "-DCOMPILE_QML=ON" # see https://github.com/Nheko-Reborn/nheko/issues/389
78   ];
80   preFixup = ''
81     # add gstreamer plugins path to the wrapper
82     qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
83   '';
85   meta = with lib; {
86     description = "Desktop client for the Matrix protocol";
87     homepage = "https://github.com/Nheko-Reborn/nheko";
88     license = licenses.gpl3Plus;
89     mainProgram = "nheko";
90     maintainers = with maintainers; [
91       ekleog
92       fpletz
93       rnhmjoj
94     ];
95     platforms = platforms.all;
96     # Should be fixable if a higher clang version is used, see:
97     # https://github.com/NixOS/nixpkgs/pull/85922#issuecomment-619287177
98     broken = stdenv.hostPlatform.isDarwin;
99   };