summary refs log tree commit diff
path: root/pkgs/applications/misc
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-07-21 00:02:24 +0000
committerGitHub <noreply@github.com>2021-07-21 00:02:24 +0000
commit94a7cf0dcd44b08363c23e2579962b323f08a2a9 (patch)
tree552d0bd8ed8f1f27c831713793baa0afd50c2a22 /pkgs/applications/misc
parent6e112807d83b0bed211f0f9cecc2f5347135073d (diff)
parent63c505b7f25f4c3582f1730f7577578ac493e5a0 (diff)
downloadnixpkgs-94a7cf0dcd44b08363c23e2579962b323f08a2a9.tar
nixpkgs-94a7cf0dcd44b08363c23e2579962b323f08a2a9.tar.gz
nixpkgs-94a7cf0dcd44b08363c23e2579962b323f08a2a9.tar.bz2
nixpkgs-94a7cf0dcd44b08363c23e2579962b323f08a2a9.tar.lz
nixpkgs-94a7cf0dcd44b08363c23e2579962b323f08a2a9.tar.xz
nixpkgs-94a7cf0dcd44b08363c23e2579962b323f08a2a9.tar.zst
nixpkgs-94a7cf0dcd44b08363c23e2579962b323f08a2a9.zip
Merge staging-next into staging
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r--pkgs/applications/misc/copyq/default.nix62
1 files changed, 49 insertions, 13 deletions
diff --git a/pkgs/applications/misc/copyq/default.nix b/pkgs/applications/misc/copyq/default.nix
index de1dacd50c2..5c96a328224 100644
--- a/pkgs/applications/misc/copyq/default.nix
+++ b/pkgs/applications/misc/copyq/default.nix
@@ -1,32 +1,68 @@
-{ lib, mkDerivation, fetchFromGitHub, cmake
-, qtbase, qtscript, qtwebkit, libXfixes, libXtst, qtx11extras, git
-, webkitSupport ? true
+{ lib
+, mkDerivation
+, fetchFromGitHub
+, cmake
+, extra-cmake-modules
+, qtbase
+, qtscript
+, libXfixes
+, libXtst
+, qtx11extras
+, git
+, knotifications
+, qtwayland
+, wayland
+, fetchpatch
 }:
 
 mkDerivation rec {
   pname = "CopyQ";
-  version = "3.13.0";
+  version = "4.1.0";
 
-  src  = fetchFromGitHub {
+  src = fetchFromGitHub {
     owner = "hluk";
     repo = "CopyQ";
     rev = "v${version}";
-    sha256 = "0qssyavx0dkgsyj2myqg8n7sih8niy960nyb1yknsbjm37iqraah";
+    sha256 = "1iacnd9dn0mrajff80r2g5nlks5sch9lmpl633mnyqmih9dwx2li";
   };
 
-  nativeBuildInputs = [ cmake ];
+  nativeBuildInputs = [
+    cmake
+    extra-cmake-modules
+  ];
 
   buildInputs = [
-    git qtbase qtscript libXfixes libXtst qtx11extras
-  ] ++ lib.optional webkitSupport qtwebkit;
+    qtbase
+    qtscript
+    libXfixes
+    libXtst
+    qtx11extras
+    knotifications
+    qtwayland
+    wayland
+  ];
+
+  patches = [
+    # Install the bash completion script correctly
+    # Remove once 4.1.1 is released
+    (fetchpatch {
+      url = "https://github.com/hluk/CopyQ/commit/aca7222ec28589af0b08f63686104b992d63ee42.patch";
+      sha256 = "0d440d0zsdzm9cd0b6c42y9qbrvxg7gdam0qmif62mr8qa0ylidl";
+    })
+  ];
+
+  postPatch = ''
+    substituteInPlace shared/com.github.hluk.copyq.desktop.in \
+      --replace copyq "$out/bin/copyq"
+  '';
 
   meta = with lib; {
-    homepage    = "https://hluk.github.io/CopyQ";
+    homepage = "https://hluk.github.io/CopyQ";
     description = "Clipboard Manager with Advanced Features";
-    license     = licenses.gpl3;
-    maintainers = [ maintainers.willtim ];
+    license = licenses.gpl3Only;
+    maintainers = with maintainers; [ willtim artturin ];
     # NOTE: CopyQ supports windows and osx, but I cannot test these.
     # OSX build requires QT5.
-    platforms   = platforms.linux;
+    platforms = platforms.linux;
   };
 }