2018-09-10 07:48:02 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, qmake, qttools,
|
2018-10-30 22:17:45 +00:00
|
|
|
deepin-gettext-tools, dtkcore, dtkwidget, deepin
|
2018-09-10 07:48:02 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "dde-calendar";
|
2018-12-16 11:39:13 +00:00
|
|
|
version = "1.2.6";
|
2018-09-10 07:48:02 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2018-12-16 11:39:13 +00:00
|
|
|
sha256 = "0k973rv0prvr7cg1xwg7kr14fkx13aslhiqc3q7vpakfk53qsw4n";
|
2018-09-10 07:48:02 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
qmake
|
|
|
|
qttools
|
|
|
|
deepin-gettext-tools
|
2019-04-02 22:34:41 +01:00
|
|
|
deepin.setupHook
|
2018-09-10 07:48:02 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dtkcore
|
|
|
|
dtkwidget
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2019-04-02 22:34:41 +01:00
|
|
|
searchHardCodedPaths
|
|
|
|
patchShebangs translate_generation.sh
|
|
|
|
patchShebangs translate_desktop.sh
|
|
|
|
|
|
|
|
fixPath $out /usr com.deepin.Calendar.service
|
|
|
|
|
2018-09-10 07:48:02 +01:00
|
|
|
sed -i translate_desktop.sh \
|
|
|
|
-e "s,/usr/bin/deepin-desktop-ts-convert,deepin-desktop-ts-convert,"
|
|
|
|
'';
|
|
|
|
|
2018-10-30 22:17:45 +00:00
|
|
|
passthru.updateScript = deepin.updateScript { inherit name; };
|
|
|
|
|
2018-09-10 07:48:02 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|