dde-calendar: init at 5.8.30

This commit is contained in:
rewine 2023-01-12 15:26:34 +08:00 committed by rewine
parent e0b99fe0fe
commit e5d7a2eada
No known key found for this signature in database
GPG key ID: AABB329787290824
2 changed files with 83 additions and 0 deletions

View file

@ -0,0 +1,82 @@
{ stdenv
, lib
, fetchFromGitHub
, fetchpatch
, dtkwidget
, qt5integration
, qt5platform-plugins
, dde-qt-dbus-factory
, cmake
, qttools
, pkg-config
, wrapQtAppsHook
, runtimeShell
, qtbase
, gtest
}:
stdenv.mkDerivation rec {
pname = "dde-calendar";
version = "5.8.30";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "sha256-8/UXq9W3Gb1Lg/nOji6zcHJts6lgY2uDxvrBxQs3Zio=";
};
patches = [
(fetchpatch {
name = "chore: use GNUInstallDirs in CmakeLists";
url = "https://github.com/linuxdeepin/dde-calendar/commit/b9d9555d90a36318eeee62ece49250b4bf8acd10.patch";
sha256 = "sha256-pvgxZPczs/lkwNjysNuVu+1AY69VZlxOn7hR9A02/3M=";
})
];
postPatch = ''
substituteInPlace calendar-service/src/dbmanager/huanglidatabase.cpp \
--replace "/usr/share/dde-calendar/data/huangli.db" "$out/share/dde-calendar/data/huangli.db"
substituteInPlace calendar-service/src/main.cpp \
--replace "/usr/share/dde-calendar/translations" "$out/share/dde-calendar/translations"
substituteInPlace calendar-service/assets/data/com.deepin.dataserver.Calendar.service \
--replace "/usr/lib/deepin-daemon/dde-calendar-service" "$out/lib/deepin-daemon/dde-calendar-service"
substituteInPlace calendar-client/assets/dbus/com.deepin.Calendar.service \
--replace "/usr/bin/dde-calendar" "$out/bin/dde-calendar"
substituteInPlace calendar-service/{src/{csystemdtimercontrol.cpp,jobremindmanager.cpp},assets/{data/com.dde.calendarserver.calendar.service,dde-calendar-service.desktop}} \
--replace "/bin/bash" "${runtimeShell}"
'';
nativeBuildInputs = [
cmake
qttools
pkg-config
wrapQtAppsHook
];
buildInputs = [
dtkwidget
qt5platform-plugins
dde-qt-dbus-factory
gtest
];
cmakeFlags = [ "-DVERSION=${version}" ];
# qt5integration must be placed before qtsvg in QT_PLUGIN_PATH
qtWrapperArgs = [
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
];
postFixup = ''
wrapQtApp $out/lib/deepin-daemon/dde-calendar-service
'';
meta = with lib; {
description = "Calendar for Deepin Desktop Environment";
homepage = "https://github.com/linuxdeepin/dde-calendar";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = teams.deepin.members;
};
}

View file

@ -30,6 +30,7 @@ let
udisks2-qt5 = callPackage ./library/udisks2-qt5 { };
#### CORE
dde-calendar = callPackage ./core/dde-calendar { };
dde-polkit-agent = callPackage ./core/dde-polkit-agent { };
dpa-ext-gnomekeyring = callPackage ./core/dpa-ext-gnomekeyring { };