2021-07-21 07:28:18 +00:00
|
|
|
{ lib
|
2023-02-02 18:25:31 +00:00
|
|
|
, stdenv
|
2021-07-21 07:28:18 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
2023-02-02 18:25:31 +00:00
|
|
|
, ninja
|
2021-07-21 07:28:18 +00:00
|
|
|
, qtbase
|
2023-02-02 18:25:31 +00:00
|
|
|
, qtsvg
|
|
|
|
, qttools
|
|
|
|
, qtdeclarative
|
2021-07-21 07:28:18 +00:00
|
|
|
, libXfixes
|
|
|
|
, libXtst
|
|
|
|
, qtwayland
|
|
|
|
, wayland
|
2023-02-02 18:25:31 +00:00
|
|
|
, wrapQtAppsHook
|
2024-04-21 15:54:59 +00:00
|
|
|
, kdePackages
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "CopyQ";
|
2024-06-24 18:47:55 +00:00
|
|
|
version = "9.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
src = fetchFromGitHub {
|
2020-04-24 23:36:52 +00:00
|
|
|
owner = "hluk";
|
|
|
|
repo = "CopyQ";
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = "v${version}";
|
2024-06-24 18:47:55 +00:00
|
|
|
hash = "sha256-Dxiytspqs4+bcnUM+B3lO8iQp9rrCvMfI+WMFMCtM7g=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
2023-02-02 18:25:31 +00:00
|
|
|
ninja
|
2024-04-21 15:54:59 +00:00
|
|
|
kdePackages.extra-cmake-modules
|
2023-02-02 18:25:31 +00:00
|
|
|
wrapQtAppsHook
|
2021-07-21 07:28:18 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2021-07-21 07:28:18 +00:00
|
|
|
qtbase
|
2023-02-02 18:25:31 +00:00
|
|
|
qtsvg
|
|
|
|
qttools
|
|
|
|
qtdeclarative
|
2021-07-21 07:28:18 +00:00
|
|
|
libXfixes
|
|
|
|
libXtst
|
|
|
|
qtwayland
|
|
|
|
wayland
|
2024-04-21 15:54:59 +00:00
|
|
|
kdePackages.kconfig
|
|
|
|
kdePackages.kstatusnotifieritem
|
|
|
|
kdePackages.knotifications
|
2021-07-21 07:28:18 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace shared/com.github.hluk.copyq.desktop.in \
|
|
|
|
--replace copyq "$out/bin/copyq"
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
cmakeFlags = [ "-DWITH_QT6=ON" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2021-07-21 07:28:18 +00:00
|
|
|
homepage = "https://hluk.github.io/CopyQ";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Clipboard Manager with Advanced Features";
|
2021-07-21 07:28:18 +00:00
|
|
|
license = licenses.gpl3Only;
|
2022-07-14 12:49:19 +00:00
|
|
|
maintainers = with maintainers; [ artturin ];
|
2020-04-24 23:36:52 +00:00
|
|
|
# NOTE: CopyQ supports windows and osx, but I cannot test these.
|
2021-07-21 07:28:18 +00:00
|
|
|
platforms = platforms.linux;
|
2023-03-04 12:14:45 +00:00
|
|
|
mainProgram = "copyq";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|