87f9c27ba9
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
63 lines
1.1 KiB
Nix
63 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, ninja
|
|
, extra-cmake-modules
|
|
, qtbase
|
|
, qtsvg
|
|
, qttools
|
|
, qtdeclarative
|
|
, libXfixes
|
|
, libXtst
|
|
, qtwayland
|
|
, wayland
|
|
, wrapQtAppsHook
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "CopyQ";
|
|
version = "7.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hluk";
|
|
repo = "CopyQ";
|
|
rev = "v${version}";
|
|
hash = "sha256-Wk1kTbL6LYgs1edazU39LlNZMAAm6wDbEPjuXvb5EkE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
ninja
|
|
extra-cmake-modules
|
|
wrapQtAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
qtbase
|
|
qtsvg
|
|
qttools
|
|
qtdeclarative
|
|
libXfixes
|
|
libXtst
|
|
qtwayland
|
|
wayland
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace shared/com.github.hluk.copyq.desktop.in \
|
|
--replace copyq "$out/bin/copyq"
|
|
'';
|
|
|
|
cmakeFlags = [ "-DWITH_QT6=ON" ];
|
|
|
|
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.
|
|
platforms = platforms.linux;
|
|
mainProgram = "copyq";
|
|
};
|
|
}
|