pantheon.wingpanel-indicator-power: 2.2.0 -> 6.1.0
This commit is contained in:
parent
13d1f3a08f
commit
243f51d34a
@ -1,7 +1,9 @@
|
||||
{ lib, stdenv
|
||||
, fetchFromGitHub
|
||||
, substituteAll
|
||||
, nix-update-script
|
||||
, pantheon
|
||||
, gnome
|
||||
, pkg-config
|
||||
, meson
|
||||
, python3
|
||||
@ -11,6 +13,7 @@
|
||||
, granite
|
||||
, bamf
|
||||
, libgtop
|
||||
, libnotify
|
||||
, udev
|
||||
, wingpanel
|
||||
, libgee
|
||||
@ -18,13 +21,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "wingpanel-indicator-power";
|
||||
version = "2.2.0";
|
||||
version = "6.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "elementary";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-wjYZXFnzvPSukzh1BNvyaFxKpYm+kNNFm5AsthLXGVE=";
|
||||
sha256 = "1zlpnl7983jkpy2nik08ih8lwrqvm456h993ixa6armzlazdvnjk";
|
||||
};
|
||||
|
||||
passthru = {
|
||||
@ -47,10 +50,18 @@ stdenv.mkDerivation rec {
|
||||
gtk3
|
||||
libgee
|
||||
libgtop
|
||||
libnotify
|
||||
udev
|
||||
wingpanel
|
||||
];
|
||||
|
||||
patches = [
|
||||
(substituteAll {
|
||||
src = ./fix-paths.patch;
|
||||
gnome_power_manager = gnome.gnome-power-manager;
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
chmod +x meson/post_install.py
|
||||
patchShebangs meson/post_install.py
|
||||
@ -59,7 +70,7 @@ stdenv.mkDerivation rec {
|
||||
meta = with lib; {
|
||||
description = "Power Indicator for Wingpanel";
|
||||
homepage = "https://github.com/elementary/wingpanel-indicator-power";
|
||||
license = licenses.gpl2Plus;
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = pantheon.maintainers;
|
||||
};
|
||||
|
@ -0,0 +1,13 @@
|
||||
diff --git a/src/Widgets/DeviceList.vala b/src/Widgets/DeviceList.vala
|
||||
index 0c56f46..33d97b3 100644
|
||||
--- a/src/Widgets/DeviceList.vala
|
||||
+++ b/src/Widgets/DeviceList.vala
|
||||
@@ -39,7 +39,7 @@ public class Power.Widgets.DeviceList : Gtk.ListBox {
|
||||
string device_path = path_entries.@get (value);
|
||||
try {
|
||||
AppInfo statistics_app = AppInfo.create_from_commandline (
|
||||
- "gnome-power-statistics --device " + device_path,
|
||||
+ "@gnome_power_manager@/bin/gnome-power-statistics --device " + device_path,
|
||||
"",
|
||||
AppInfoCreateFlags.NONE
|
||||
);
|
Loading…
Reference in New Issue
Block a user