nixpkgs/pkgs/applications/misc/copyq/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

67 lines
1.2 KiB
Nix
Raw Normal View History

2021-07-19 21:38:11 +00:00
{ lib
2023-01-22 10:46:51 +00:00
, stdenv
2021-07-19 21:38:11 +00:00
, fetchFromGitHub
, cmake
2023-01-22 10:46:51 +00:00
, ninja
2021-07-19 21:38:11 +00:00
, qtbase
2023-01-22 10:46:51 +00:00
, qtsvg
, qttools
, qtdeclarative
2021-07-19 21:38:11 +00:00
, libXfixes
, libXtst
, qtwayland
, wayland
2023-01-22 10:46:51 +00:00
, wrapQtAppsHook
2024-03-18 05:54:39 +00:00
, kdePackages
}:
2015-12-22 21:47:49 +00:00
2023-01-22 10:46:51 +00:00
stdenv.mkDerivation rec {
pname = "CopyQ";
2024-03-18 05:54:39 +00:00
version = "8.0.0";
2017-03-20 01:12:46 +00:00
2021-07-19 21:38:11 +00:00
src = fetchFromGitHub {
2017-03-20 01:12:46 +00:00
owner = "hluk";
repo = "CopyQ";
2023-09-05 04:05:18 +00:00
rev = "v${version}";
2024-03-18 05:54:39 +00:00
hash = "sha256-Ewunl4k9f0aDjilhKAsVxwR3S6uSZ1xwtu6ccNsNOgk=";
2015-12-22 21:47:49 +00:00
};
2021-07-19 21:38:11 +00:00
nativeBuildInputs = [
cmake
2023-01-22 10:46:51 +00:00
ninja
2024-03-18 05:54:39 +00:00
kdePackages.extra-cmake-modules
2023-01-22 10:46:51 +00:00
wrapQtAppsHook
2021-07-19 21:38:11 +00:00
];
buildInputs = [
2021-07-19 21:38:11 +00:00
qtbase
2023-01-22 10:46:51 +00:00
qtsvg
qttools
qtdeclarative
2021-07-19 21:38:11 +00:00
libXfixes
libXtst
qtwayland
wayland
2024-03-18 05:54:39 +00:00
kdePackages.kconfig
kdePackages.kstatusnotifieritem
kdePackages.knotifications
2021-07-19 21:38:11 +00:00
];
postPatch = ''
substituteInPlace shared/com.github.hluk.copyq.desktop.in \
--replace copyq "$out/bin/copyq"
'';
2015-12-22 21:47:49 +00:00
2023-01-22 10:46:51 +00:00
cmakeFlags = [ "-DWITH_QT6=ON" ];
meta = with lib; {
2021-07-19 21:38:11 +00:00
homepage = "https://hluk.github.io/CopyQ";
2015-12-22 21:47:49 +00:00
description = "Clipboard Manager with Advanced Features";
2021-07-19 21:38:11 +00:00
license = licenses.gpl3Only;
maintainers = with maintainers; [ artturin ];
2015-12-22 21:47:49 +00:00
# NOTE: CopyQ supports windows and osx, but I cannot test these.
2021-07-19 21:38:11 +00:00
platforms = platforms.linux;
2023-02-27 11:10:34 +00:00
mainProgram = "copyq";
2015-12-22 21:47:49 +00:00
};
}