2021-07-19 22:38:11 +01:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, extra-cmake-modules
|
|
|
|
, qtbase
|
|
|
|
, qtscript
|
|
|
|
, libXfixes
|
|
|
|
, libXtst
|
|
|
|
, qtx11extras
|
|
|
|
, git
|
|
|
|
, knotifications
|
|
|
|
, qtwayland
|
|
|
|
, wayland
|
|
|
|
, fetchpatch
|
2017-08-24 13:35:26 +01:00
|
|
|
}:
|
2015-12-22 21:47:49 +00:00
|
|
|
|
2019-10-12 13:01:55 +01:00
|
|
|
mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "CopyQ";
|
2022-03-08 07:14:22 +00:00
|
|
|
version = "6.1.0";
|
2017-03-20 01:12:46 +00:00
|
|
|
|
2021-07-19 22:38:11 +01:00
|
|
|
src = fetchFromGitHub {
|
2017-03-20 01:12:46 +00:00
|
|
|
owner = "hluk";
|
|
|
|
repo = "CopyQ";
|
|
|
|
rev = "v${version}";
|
2022-03-08 07:14:22 +00:00
|
|
|
sha256 = "sha256-2BWyLVxH50G+S/Hp8E5hWG64DcIamtZPGm0nSMwEhY4=";
|
2015-12-22 21:47:49 +00:00
|
|
|
};
|
|
|
|
|
2021-07-19 22:38:11 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
extra-cmake-modules
|
|
|
|
];
|
2017-08-24 13:35:26 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
2021-07-19 22:38:11 +01:00
|
|
|
qtbase
|
|
|
|
qtscript
|
|
|
|
libXfixes
|
|
|
|
libXtst
|
|
|
|
qtx11extras
|
|
|
|
knotifications
|
|
|
|
qtwayland
|
|
|
|
wayland
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace shared/com.github.hluk.copyq.desktop.in \
|
|
|
|
--replace copyq "$out/bin/copyq"
|
|
|
|
'';
|
2015-12-22 21:47:49 +00:00
|
|
|
|
2019-10-12 13:01:55 +01:00
|
|
|
meta = with lib; {
|
2021-07-19 22:38:11 +01:00
|
|
|
homepage = "https://hluk.github.io/CopyQ";
|
2015-12-22 21:47:49 +00:00
|
|
|
description = "Clipboard Manager with Advanced Features";
|
2021-07-19 22:38:11 +01:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ willtim artturin ];
|
2015-12-22 21:47:49 +00:00
|
|
|
# NOTE: CopyQ supports windows and osx, but I cannot test these.
|
|
|
|
# OSX build requires QT5.
|
2021-07-19 22:38:11 +01:00
|
|
|
platforms = platforms.linux;
|
2015-12-22 21:47:49 +00:00
|
|
|
};
|
|
|
|
}
|