deepin.dde-clipboard: init at 5.4.25
This commit is contained in:
parent
ec1ecba26a
commit
43fa334716
73
pkgs/desktops/deepin/core/dde-clipboard/default.nix
Normal file
73
pkgs/desktops/deepin/core/dde-clipboard/default.nix
Normal file
|
@ -0,0 +1,73 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, dtkwidget
|
||||
, qt5integration
|
||||
, qt5platform-plugins
|
||||
, dde-qt-dbus-factory
|
||||
, gio-qt
|
||||
, cmake
|
||||
, qttools
|
||||
, kwayland
|
||||
, pkg-config
|
||||
, wrapQtAppsHook
|
||||
, glibmm
|
||||
, gtest
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "dde-clipboard";
|
||||
version = "5.4.25";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "linuxdeepin";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-oFATOBXf4NvGxjVMlfxwfQkBffeKut8ao+X6T9twb/I=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--replace "/etc/xdg" "$out/etc/xdg" \
|
||||
--replace "/lib/systemd/user" "$out/lib/systemd/user" \
|
||||
--replace "/usr/share" "$out/share"
|
||||
|
||||
substituteInPlace misc/com.deepin.dde.Clipboard.service \
|
||||
--replace "/usr/bin/qdbus" "${lib.getBin qttools}/bin/qdbus"
|
||||
|
||||
substituteInPlace misc/{dde-clipboard.desktop,dde-clipboard-daemon.service,com.deepin.dde.Clipboard.service} \
|
||||
--replace "/usr" "$out"
|
||||
|
||||
patchShebangs translate_generation.sh generate_gtest_report.sh
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
qttools
|
||||
wrapQtAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
dtkwidget
|
||||
qt5integration
|
||||
qt5platform-plugins
|
||||
dde-qt-dbus-factory
|
||||
gio-qt
|
||||
kwayland
|
||||
glibmm
|
||||
gtest
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DUSE_DEEPIN_WAYLAND=OFF"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "DDE optional clipboard manager componment";
|
||||
homepage = "https://github.com/linuxdeepin/dde-clipboard";
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = teams.deepin.members;
|
||||
};
|
||||
}
|
|
@ -32,6 +32,7 @@ let
|
|||
#### CORE
|
||||
dde-control-center = callPackage ./core/dde-control-center { };
|
||||
dde-calendar = callPackage ./core/dde-calendar { };
|
||||
dde-clipboard = callPackage ./core/dde-clipboard { };
|
||||
dde-dock = callPackage ./core/dde-dock { };
|
||||
dde-launcher = callPackage ./core/dde-launcher { };
|
||||
dde-polkit-agent = callPackage ./core/dde-polkit-agent { };
|
||||
|
|
Loading…
Reference in a new issue