2019-07-22 04:53:18 +02:00
|
|
|
{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, cmake, qttools,
|
2018-10-30 23:17:45 +01:00
|
|
|
deepin-gettext-tools, dtkcore, dtkwidget, deepin
|
2018-09-10 08:48:02 +02:00
|
|
|
}:
|
|
|
|
|
2019-07-22 04:53:18 +02:00
|
|
|
mkDerivation rec {
|
2018-09-10 08:48:02 +02:00
|
|
|
pname = "dde-calendar";
|
2019-06-22 14:26:32 +02:00
|
|
|
version = "1.2.10";
|
2018-09-10 08:48:02 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-06-22 14:26:32 +02:00
|
|
|
sha256 = "00aqx24jccf88vvkpb9svyjz8knrqyjgd0152psf9dxc9q13f61h";
|
2018-09-10 08:48:02 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2019-06-22 14:26:32 +02:00
|
|
|
cmake
|
2018-09-10 08:48:02 +02:00
|
|
|
pkgconfig
|
|
|
|
qttools
|
|
|
|
deepin-gettext-tools
|
2019-04-02 23:34:41 +02:00
|
|
|
deepin.setupHook
|
2018-09-10 08:48:02 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dtkcore
|
|
|
|
dtkwidget
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2019-04-02 23:34:41 +02:00
|
|
|
searchHardCodedPaths
|
|
|
|
patchShebangs translate_generation.sh
|
|
|
|
patchShebangs translate_desktop.sh
|
|
|
|
|
|
|
|
fixPath $out /usr com.deepin.Calendar.service
|
|
|
|
|
2018-09-10 08:48:02 +02:00
|
|
|
sed -i translate_desktop.sh \
|
|
|
|
-e "s,/usr/bin/deepin-desktop-ts-convert,deepin-desktop-ts-convert,"
|
|
|
|
'';
|
|
|
|
|
2019-08-15 14:41:18 +02:00
|
|
|
passthru.updateScript = deepin.updateScript { inherit ;name = "${pname}-${version}"; };
|
2018-10-30 23:17:45 +01:00
|
|
|
|
2018-09-10 08:48:02 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Calendar for Deepin Desktop Environment";
|
|
|
|
homepage = https://github.com/linuxdeepin/dde-calendar;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|