CopyQ: 3.13.0 -> 4.1.0
This commit is contained in:
parent
20117e607d
commit
53b07b7f33
|
@ -1,32 +1,68 @@
|
||||||
{ lib, mkDerivation, fetchFromGitHub, cmake
|
{ lib
|
||||||
, qtbase, qtscript, qtwebkit, libXfixes, libXtst, qtx11extras, git
|
, mkDerivation
|
||||||
, webkitSupport ? true
|
, fetchFromGitHub
|
||||||
|
, cmake
|
||||||
|
, extra-cmake-modules
|
||||||
|
, qtbase
|
||||||
|
, qtscript
|
||||||
|
, libXfixes
|
||||||
|
, libXtst
|
||||||
|
, qtx11extras
|
||||||
|
, git
|
||||||
|
, knotifications
|
||||||
|
, qtwayland
|
||||||
|
, wayland
|
||||||
|
, fetchpatch
|
||||||
}:
|
}:
|
||||||
|
|
||||||
mkDerivation rec {
|
mkDerivation rec {
|
||||||
pname = "CopyQ";
|
pname = "CopyQ";
|
||||||
version = "3.13.0";
|
version = "4.1.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "hluk";
|
owner = "hluk";
|
||||||
repo = "CopyQ";
|
repo = "CopyQ";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0qssyavx0dkgsyj2myqg8n7sih8niy960nyb1yknsbjm37iqraah";
|
sha256 = "1iacnd9dn0mrajff80r2g5nlks5sch9lmpl633mnyqmih9dwx2li";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [
|
||||||
|
cmake
|
||||||
|
extra-cmake-modules
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
git qtbase qtscript libXfixes libXtst qtx11extras
|
qtbase
|
||||||
] ++ lib.optional webkitSupport qtwebkit;
|
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"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://hluk.github.io/CopyQ";
|
homepage = "https://hluk.github.io/CopyQ";
|
||||||
description = "Clipboard Manager with Advanced Features";
|
description = "Clipboard Manager with Advanced Features";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3Only;
|
||||||
maintainers = [ maintainers.willtim ];
|
maintainers = with maintainers; [ willtim artturin ];
|
||||||
# NOTE: CopyQ supports windows and osx, but I cannot test these.
|
# NOTE: CopyQ supports windows and osx, but I cannot test these.
|
||||||
# OSX build requires QT5.
|
# OSX build requires QT5.
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -23431,7 +23431,7 @@ in
|
||||||
|
|
||||||
confclerk = callPackage ../applications/misc/confclerk { };
|
confclerk = callPackage ../applications/misc/confclerk { };
|
||||||
|
|
||||||
copyq = libsForQt514.callPackage ../applications/misc/copyq { };
|
copyq = libsForQt5.callPackage ../applications/misc/copyq { };
|
||||||
|
|
||||||
corectrl = libsForQt5.callPackage ../applications/misc/corectrl { };
|
corectrl = libsForQt5.callPackage ../applications/misc/corectrl { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue