mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 03:15:56 +03:00
pantheon.wingpanel-indicator-datetime: 2.2.5 -> 2.3.0
This commit is contained in:
parent
51812f981c
commit
082d6d72fd
@ -1,6 +1,8 @@
|
||||
{ lib, stdenv
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, nix-update-script
|
||||
, substituteAll
|
||||
, pantheon
|
||||
, pkg-config
|
||||
, meson
|
||||
@ -13,6 +15,7 @@
|
||||
, evolution-data-server
|
||||
, libical
|
||||
, libgee
|
||||
, libhandy
|
||||
, libxml2
|
||||
, libsoup
|
||||
, libgdata
|
||||
@ -21,13 +24,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "wingpanel-indicator-datetime";
|
||||
version = "2.2.5";
|
||||
version = "2.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "elementary";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-rZzZIh4bwZfwQFDbfPDKQtfLMJQ2IdykH1yiV6ckqnw=";
|
||||
sha256 = "1mdm0fsnmmyw8c0ik2jmfri3kas9zkz1hskzf8wvbd51vnazfpgw";
|
||||
};
|
||||
|
||||
passthru = {
|
||||
@ -50,12 +53,26 @@ stdenv.mkDerivation rec {
|
||||
granite
|
||||
gtk3
|
||||
libgee
|
||||
libhandy
|
||||
libical
|
||||
libsoup
|
||||
wingpanel
|
||||
libgdata # required by some dependency transitively
|
||||
];
|
||||
|
||||
patches = [
|
||||
(substituteAll {
|
||||
src = ./fix-paths.patch;
|
||||
elementary_calendar = elementary-calendar;
|
||||
})
|
||||
# Upstream code not respecting our localedir
|
||||
# https://github.com/elementary/wingpanel-indicator-datetime/pull/269
|
||||
(fetchpatch {
|
||||
url = "https://github.com/elementary/wingpanel-indicator-datetime/commit/f7befa68a9fd6215297c334a366919d3431cae65.patch";
|
||||
sha256 = "0l997b1pnpjscs886xy28as5yykxamxacvxdv8466zin7zynarfs";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
chmod +x meson/post_install.py
|
||||
patchShebangs meson/post_install.py
|
||||
@ -64,7 +81,7 @@ stdenv.mkDerivation rec {
|
||||
meta = with lib; {
|
||||
description = "Date & Time Indicator for Wingpanel";
|
||||
homepage = "https://github.com/elementary/wingpanel-indicator-datetime";
|
||||
license = licenses.gpl2Plus;
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = pantheon.maintainers;
|
||||
};
|
||||
|
@ -0,0 +1,13 @@
|
||||
diff --git a/src/Widgets/calendar/CalendarView.vala b/src/Widgets/calendar/CalendarView.vala
|
||||
index 6e0d530a..2f90f96c 100644
|
||||
--- a/src/Widgets/calendar/CalendarView.vala
|
||||
+++ b/src/Widgets/calendar/CalendarView.vala
|
||||
@@ -222,7 +222,7 @@ public class DateTime.Widgets.CalendarView : Gtk.Grid {
|
||||
|
||||
// TODO: As far as maya supports it use the Dbus Activation feature to run the calendar-app.
|
||||
public void show_date_in_maya (GLib.DateTime date) {
|
||||
- var command = "io.elementary.calendar --show-day %s".printf (date.format ("%F"));
|
||||
+ var command = "@elementary_calendar@/bin/io.elementary.calendar --show-day %s".printf (date.format ("%F"));
|
||||
|
||||
try {
|
||||
var appinfo = AppInfo.create_from_commandline (command, null, AppInfoCreateFlags.NONE);
|
Loading…
Reference in New Issue
Block a user