{ lib, stdenv, fetchFromGitHub, cmake, ninja, qtbase, qtsvg, qttools, qtdeclarative, libXfixes, libXtst, qtwayland, wayland, pkg-config, wrapQtAppsHook, kdePackages, }: stdenv.mkDerivation rec { pname = "CopyQ"; version = "11.0.0"; src = fetchFromGitHub { owner = "hluk"; repo = "CopyQ"; rev = "v${version}"; hash = "sha256-/t+8YsqeX0tlxwQDDNTalttCDIgGhpLbzYe3UqY04xM="; }; nativeBuildInputs = [ cmake ninja kdePackages.extra-cmake-modules wrapQtAppsHook pkg-config ]; buildInputs = [ qtbase qtsvg qttools qtdeclarative libXfixes libXtst qtwayland wayland kdePackages.kconfig kdePackages.kstatusnotifieritem kdePackages.knotifications ]; cmakeFlags = [ (lib.cmakeBool "WITH_QT6" true) ]; meta = { homepage = "https://hluk.github.io/CopyQ"; description = "Clipboard Manager with Advanced Features"; license = lib.licenses.gpl3Plus; maintainers = with lib.maintainers; [ artturin ]; # NOTE: CopyQ supports windows and osx, but I cannot test these. platforms = lib.platforms.linux; mainProgram = "copyq"; }; }