about summary refs log tree commit diff
path: root/pkgs/applications/misc/copyq
diff options
context:
space:
mode:
authorQuantMint <quantmint@protonmail.com>2023-01-22 11:46:51 +0100
committerQuantMint <quantmint@protonmail.com>2023-01-22 11:46:51 +0100
commit7b61a2bf69212f907ba5e320b9097355090c6e76 (patch)
treebc1c5103eb7caaf14abdc93cea2d2bf692f07204 /pkgs/applications/misc/copyq
parent06a3b215318b9d42bf019d8f79fbc9797892fed6 (diff)
copyq: build with qt6
Diffstat (limited to 'pkgs/applications/misc/copyq')
-rw-r--r--pkgs/applications/misc/copyq/default.nix24
1 files changed, 14 insertions, 10 deletions
diff --git a/pkgs/applications/misc/copyq/default.nix b/pkgs/applications/misc/copyq/default.nix
index fb00cdafad44a..954d16ce3e73c 100644
--- a/pkgs/applications/misc/copyq/default.nix
+++ b/pkgs/applications/misc/copyq/default.nix
@@ -1,20 +1,21 @@
 { lib
-, mkDerivation
+, stdenv
 , fetchFromGitHub
 , cmake
+, ninja
 , extra-cmake-modules
 , qtbase
-, qtscript
+, qtsvg
+, qttools
+, qtdeclarative
 , libXfixes
 , libXtst
-, qtx11extras
-, knotifications
 , qtwayland
 , wayland
-, fetchpatch
+, wrapQtAppsHook
 }:
 
-mkDerivation rec {
+stdenv.mkDerivation rec {
   pname = "CopyQ";
   version = "6.4.0";
 
@@ -27,16 +28,18 @@ mkDerivation rec {
 
   nativeBuildInputs = [
     cmake
+    ninja
     extra-cmake-modules
+    wrapQtAppsHook
   ];
 
   buildInputs = [
     qtbase
-    qtscript
+    qtsvg
+    qttools
+    qtdeclarative
     libXfixes
     libXtst
-    qtx11extras
-    knotifications
     qtwayland
     wayland
   ];
@@ -46,13 +49,14 @@ mkDerivation rec {
       --replace copyq "$out/bin/copyq"
   '';
 
+  cmakeFlags = [ "-DWITH_QT6=ON" ];
+
   meta = with lib; {
     homepage = "https://hluk.github.io/CopyQ";
     description = "Clipboard Manager with Advanced Features";
     license = licenses.gpl3Only;
     maintainers = with maintainers; [ artturin ];
     # NOTE: CopyQ supports windows and osx, but I cannot test these.
-    # OSX build requires QT5.
     platforms = platforms.linux;
   };
 }