From 6a0e026b01e9ce386039d8d7439743adac5dc6bf Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Tue, 26 Oct 2021 09:33:38 +0800 Subject: [PATCH] pantheon.wingpanel-indicator-network: 2.3.0 -> 2.3.1 --- .../wingpanel-indicators/network/default.nix | 22 ++++--------------- .../network/fix-paths.patch | 13 ----------- 2 files changed, 4 insertions(+), 31 deletions(-) delete mode 100644 pkgs/desktops/pantheon/desktop/wingpanel-indicators/network/fix-paths.patch diff --git a/pkgs/desktops/pantheon/desktop/wingpanel-indicators/network/default.nix b/pkgs/desktops/pantheon/desktop/wingpanel-indicators/network/default.nix index 92738df7b355..560d16111c50 100644 --- a/pkgs/desktops/pantheon/desktop/wingpanel-indicators/network/default.nix +++ b/pkgs/desktops/pantheon/desktop/wingpanel-indicators/network/default.nix @@ -1,6 +1,6 @@ -{ lib, stdenv +{ lib +, stdenv , fetchFromGitHub -, fetchpatch , nix-update-script , substituteAll , pantheon @@ -14,18 +14,17 @@ , libnma , wingpanel , libgee -, elementary-capnet-assist }: stdenv.mkDerivation rec { pname = "wingpanel-indicator-network"; - version = "2.3.0"; + version = "2.3.1"; src = fetchFromGitHub { owner = "elementary"; repo = pname; rev = version; - sha256 = "0q5ad2sj0nmigrh1rykb2kvik3hzibzyafdvkkmjd6y92145lwl1"; + sha256 = "sha256-xr1ZihWK8fU8M/rXRKk5dOjoQNe3aJO8ouKC/iVZ7Sk="; }; passthru = { @@ -50,19 +49,6 @@ stdenv.mkDerivation rec { wingpanel ]; - patches = [ - (substituteAll { - src = ./fix-paths.patch; - elementary_capnet_assist = elementary-capnet-assist; - }) - # Upstream code not respecting our localedir - # https://github.com/elementary/wingpanel-indicator-network/pull/228 - (fetchpatch { - url = "https://github.com/elementary/wingpanel-indicator-network/commit/eacc7d46a94a980005e87e38e6c943143a09692a.patch"; - sha256 = "1svg07fqmplchp1ass0h8qkr3g24pkw8dcsnd54ddmvnjzwrzz0a"; - }) - ]; - meta = with lib; { description = "Network Indicator for Wingpanel"; homepage = "https://github.com/elementary/wingpanel-indicator-network"; diff --git a/pkgs/desktops/pantheon/desktop/wingpanel-indicators/network/fix-paths.patch b/pkgs/desktops/pantheon/desktop/wingpanel-indicators/network/fix-paths.patch deleted file mode 100644 index b98c50b3e49a..000000000000 --- a/pkgs/desktops/pantheon/desktop/wingpanel-indicators/network/fix-paths.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/src/Indicator.vala b/src/Indicator.vala -index 83ce932a..f95ed142 100644 ---- a/src/Indicator.vala -+++ b/src/Indicator.vala -@@ -67,7 +67,7 @@ public class Network.Indicator : Wingpanel.Indicator { - - if (network_monitor.get_connectivity () == NetworkConnectivity.FULL || network_monitor.get_connectivity () == NetworkConnectivity.PORTAL) { - try { -- var appinfo = AppInfo.create_from_commandline ("io.elementary.capnet-assist", null, AppInfoCreateFlags.NONE); -+ var appinfo = AppInfo.create_from_commandline ("@elementary_capnet_assist@/bin/io.elementary.capnet-assist", null, AppInfoCreateFlags.NONE); - appinfo.launch (null, null); - } catch (Error e) { - warning ("%s\n", e.message);