2021-07-19 23:38:11 +02:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, extra-cmake-modules
|
|
|
|
, qtbase
|
|
|
|
, qtscript
|
|
|
|
, libXfixes
|
|
|
|
, libXtst
|
|
|
|
, qtx11extras
|
|
|
|
, git
|
|
|
|
, knotifications
|
|
|
|
, qtwayland
|
|
|
|
, wayland
|
|
|
|
, fetchpatch
|
2017-08-24 14:35:26 +02:00
|
|
|
}:
|
2015-12-22 22:47:49 +01:00
|
|
|
|
2019-10-12 14:01:55 +02:00
|
|
|
mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "CopyQ";
|
2021-07-19 23:38:11 +02:00
|
|
|
version = "4.1.0";
|
2017-03-20 02:12:46 +01:00
|
|
|
|
2021-07-19 23:38:11 +02:00
|
|
|
src = fetchFromGitHub {
|
2017-03-20 02:12:46 +01:00
|
|
|
owner = "hluk";
|
|
|
|
repo = "CopyQ";
|
|
|
|
rev = "v${version}";
|
2021-07-19 23:38:11 +02:00
|
|
|
sha256 = "1iacnd9dn0mrajff80r2g5nlks5sch9lmpl633mnyqmih9dwx2li";
|
2015-12-22 22:47:49 +01:00
|
|
|
};
|
|
|
|
|
2021-07-19 23:38:11 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
extra-cmake-modules
|
|
|
|
];
|
2017-08-24 14:35:26 +02:00
|
|
|
|
|
|
|
buildInputs = [
|
2021-07-19 23:38:11 +02:00
|
|
|
qtbase
|
|
|
|
qtscript
|
|
|
|
libXfixes
|
|
|
|
libXtst
|
|
|
|
qtx11extras
|
|
|
|
knotifications
|
|
|
|
qtwayland
|
|
|
|
wayland
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Install the bash completion script correctly
|
|
|
|
# Remove once 4.1.1 is released
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/hluk/CopyQ/commit/aca7222ec28589af0b08f63686104b992d63ee42.patch";
|
|
|
|
sha256 = "0d440d0zsdzm9cd0b6c42y9qbrvxg7gdam0qmif62mr8qa0ylidl";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace shared/com.github.hluk.copyq.desktop.in \
|
|
|
|
--replace copyq "$out/bin/copyq"
|
|
|
|
'';
|
2015-12-22 22:47:49 +01:00
|
|
|
|
2019-10-12 14:01:55 +02:00
|
|
|
meta = with lib; {
|
2021-07-19 23:38:11 +02:00
|
|
|
homepage = "https://hluk.github.io/CopyQ";
|
2015-12-22 22:47:49 +01:00
|
|
|
description = "Clipboard Manager with Advanced Features";
|
2021-07-19 23:38:11 +02:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ willtim artturin ];
|
2015-12-22 22:47:49 +01:00
|
|
|
# NOTE: CopyQ supports windows and osx, but I cannot test these.
|
|
|
|
# OSX build requires QT5.
|
2021-07-19 23:38:11 +02:00
|
|
|
platforms = platforms.linux;
|
2015-12-22 22:47:49 +01:00
|
|
|
};
|
|
|
|
}
|