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
|
|
|
, extra-cmake-modules
|
|
|
|
, 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
|
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";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "7.1.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}";
|
|
|
|
hash = "sha256-aAmpFKIIFZLPWUaOcf4V1d/wVQ7xRcnXFsqFjROsabg=";
|
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
|
2021-07-21 07:28:18 +00:00
|
|
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|