about summary refs log tree commit diff
path: root/pkgs/development/libraries/libquotient
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2023-11-23 22:41:22 +0300
committerK900 <me@0upti.me>2023-12-03 14:48:56 +0300
commit4e616054f59170070d0086e1315bf97028cc4412 (patch)
tree9e337f980a238e12058dbe533854096e3cbb5c28 /pkgs/development/libraries/libquotient
parenta2a83fc41a7064b84aad656d0b15e4a346fb84df (diff)
libquotient: add Qt6 support
Diffstat (limited to 'pkgs/development/libraries/libquotient')
-rw-r--r--pkgs/development/libraries/libquotient/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libquotient/default.nix b/pkgs/development/libraries/libquotient/default.nix
index e154ab8eafe2c..b461a3c078642 100644
--- a/pkgs/development/libraries/libquotient/default.nix
+++ b/pkgs/development/libraries/libquotient/default.nix
@@ -1,6 +1,8 @@
 { stdenv, lib, fetchFromGitHub, cmake, olm, openssl, qtbase, qtmultimedia, qtkeychain }:
 
-stdenv.mkDerivation rec {
+let
+  isQt6 = lib.versions.major qtbase.version == "6";
+in stdenv.mkDerivation rec {
   pname = "libquotient";
   version = "0.8.1.2";
 
@@ -19,6 +21,7 @@ stdenv.mkDerivation rec {
 
   cmakeFlags = [
     "-DQuotient_ENABLE_E2EE=ON"
+    (lib.cmakeBool "BUILD_WITH_QT6" isQt6)
   ];
 
   # https://github.com/quotient-im/libQuotient/issues/551