1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/desktops/deepin/dde-calendar/default.nix

50 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, cmake, qttools,
2018-10-30 22:17:45 +00:00
deepin-gettext-tools, dtkcore, dtkwidget, deepin
2018-09-10 07:48:02 +01:00
}:
mkDerivation rec {
2018-09-10 07:48:02 +01:00
pname = "dde-calendar";
2019-11-12 01:08:37 +00:00
version = "5.0.1";
2018-09-10 07:48:02 +01:00
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
2019-11-12 01:08:37 +00:00
sha256 = "1zzr3crkz4l5l135y0m53vqhv7fkrbvbspk8295swz9gsm3f7ah9";
2018-09-10 07:48:02 +01:00
};
nativeBuildInputs = [
2019-06-22 13:26:32 +01:00
cmake
2018-09-10 07:48:02 +01:00
pkgconfig
qttools
deepin-gettext-tools
deepin.setupHook
2018-09-10 07:48:02 +01:00
];
buildInputs = [
dtkcore
dtkwidget
];
postPatch = ''
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,"
'';
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
2018-10-30 22:17:45 +00:00
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 ];
};
}