c594a97518
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
58 lines
1.1 KiB
Nix
58 lines
1.1 KiB
Nix
{ lib
|
|
, mkDerivation
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, extra-cmake-modules
|
|
, qtbase
|
|
, qtscript
|
|
, libXfixes
|
|
, libXtst
|
|
, qtx11extras
|
|
, knotifications
|
|
, qtwayland
|
|
, wayland
|
|
, fetchpatch
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "CopyQ";
|
|
version = "6.3.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hluk";
|
|
repo = "CopyQ";
|
|
rev = "v${version}";
|
|
hash = "sha256-Ge/TD9Llq4YTAqaL9LBEsgNI9qrf2jLDt7q2ZTI9rmE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
extra-cmake-modules
|
|
];
|
|
|
|
buildInputs = [
|
|
qtbase
|
|
qtscript
|
|
libXfixes
|
|
libXtst
|
|
qtx11extras
|
|
knotifications
|
|
qtwayland
|
|
wayland
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace shared/com.github.hluk.copyq.desktop.in \
|
|
--replace copyq "$out/bin/copyq"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://hluk.github.io/CopyQ";
|
|
description = "Clipboard Manager with Advanced Features";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ artturin ];
|
|
# NOTE: CopyQ supports windows and osx, but I cannot test these.
|
|
# OSX build requires QT5.
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|