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
R. RyanTM a3b5010856 deepin.dde-calendar: 1.2.5 -> 1.2.6
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/dde-calendar/versions
2018-12-16 03:39:13 -08:00

47 lines
1 KiB
Nix

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