nixpkgs/pkgs/desktops/deepin/dde-calendar/default.nix
worldofpeace 735199a210 deepin: use qt5.mkDerivation where needed, cleanup wrappers
This switches a majority of the applications to using qt5.mkDerivation
which automatically adds wrapQtAppsHook.

In certain places, where GLib and gtk intersect with Qt, we
also needed to use wrapGAppsHook. In these cases there will
be multiple wrappers.
2019-07-21 23:49:36 -04:00

50 lines
1.1 KiB
Nix

{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, cmake, qttools,
deepin-gettext-tools, dtkcore, dtkwidget, deepin
}:
mkDerivation rec {
name = "${pname}-${version}";
pname = "dde-calendar";
version = "1.2.10";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "00aqx24jccf88vvkpb9svyjz8knrqyjgd0152psf9dxc9q13f61h";
};
nativeBuildInputs = [
cmake
pkgconfig
qttools
deepin-gettext-tools
deepin.setupHook
];
buildInputs = [
dtkcore
dtkwidget
];
postPatch = ''
searchHardCodedPaths
patchShebangs translate_generation.sh
patchShebangs translate_desktop.sh
fixPath $out /usr com.deepin.Calendar.service
sed -i translate_desktop.sh \
-e "s,/usr/bin/deepin-desktop-ts-convert,deepin-desktop-ts-convert,"
'';
passthru.updateScript = deepin.updateScript { inherit name; };
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 ];
};
}