2021-07-21 07:28:18 +00:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, extra-cmake-modules
|
|
|
|
, qtbase
|
|
|
|
, qtscript
|
|
|
|
, libXfixes
|
|
|
|
, libXtst
|
|
|
|
, qtx11extras
|
|
|
|
, git
|
|
|
|
, knotifications
|
|
|
|
, qtwayland
|
|
|
|
, wayland
|
|
|
|
, fetchpatch
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "CopyQ";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "6.2.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";
|
|
|
|
rev = "v${version}";
|
2022-09-09 14:08:57 +00:00
|
|
|
hash = "sha256-0XCqSF1oc2B3FD5OmOxqgt9sqCIrzK0KjkntVFXlRWI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
extra-cmake-modules
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2021-07-21 07:28:18 +00:00
|
|
|
qtbase
|
|
|
|
qtscript
|
|
|
|
libXfixes
|
|
|
|
libXtst
|
|
|
|
qtx11extras
|
|
|
|
knotifications
|
|
|
|
qtwayland
|
|
|
|
wayland
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace shared/com.github.hluk.copyq.desktop.in \
|
|
|
|
--replace copyq "$out/bin/copyq"
|
|
|
|
'';
|
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.
|
|
|
|
# OSX build requires QT5.
|
2021-07-21 07:28:18 +00:00
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|