diff options
author | Anders Kaseorg <andersk@mit.edu> | 2021-02-14 18:36:57 -0800 |
---|---|---|
committer | Anders Kaseorg <andersk@mit.edu> | 2021-02-14 19:02:33 -0800 |
commit | 70cf0705f61433c5bc88ab069f84bae7f8efaccf (patch) | |
tree | ce20a228df75cc06441b7a92c5dcabab6be0e0c7 /pkgs/desktops/gnome-3 | |
parent | ff96a0fa5635770390b184ae74debea75c3fd534 (diff) |
gnome-session: Fix 2 minute shutdown delay
Fixes #113165, by pulling in the upstream patch for https://gitlab.gnome.org/GNOME/gnome-session/-/issues/74 “2 minutes delay at poweroff with systemd-247”. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Diffstat (limited to 'pkgs/desktops/gnome-3')
-rw-r--r-- | pkgs/desktops/gnome-3/core/gnome-session/default.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/desktops/gnome-3/core/gnome-session/default.nix b/pkgs/desktops/gnome-3/core/gnome-session/default.nix index d2dca54b5ca46..1fa0a0b0fc64d 100644 --- a/pkgs/desktops/gnome-3/core/gnome-session/default.nix +++ b/pkgs/desktops/gnome-3/core/gnome-session/default.nix @@ -1,6 +1,7 @@ { fetchurl, lib, stdenv, substituteAll, meson, ninja, pkg-config, gnome3, glib, gtk3, gsettings-desktop-schemas , gnome-desktop, dbus, json-glib, libICE, xmlto, docbook_xsl, docbook_xml_dtd_412, python3 -, libxslt, gettext, makeWrapper, systemd, xorg, epoxy, gnugrep, bash, gnome-session-ctl }: +, libxslt, gettext, makeWrapper, systemd, xorg, epoxy, gnugrep, bash, gnome-session-ctl +, fetchpatch }: stdenv.mkDerivation rec { pname = "gnome-session"; @@ -21,6 +22,12 @@ stdenv.mkDerivation rec { grep = "${gnugrep}/bin/grep"; bash = "${bash}/bin/bash"; }) + # Fixes 2 minute delay at poweroff. + # https://gitlab.gnome.org/GNOME/gnome-session/issues/74 + (fetchpatch { + url = "https://gitlab.gnome.org/GNOME/gnome-session/-/commit/9de6e40f12e8878f524f8d429d85724c156a0517.diff"; + sha256 = "19vrjdf7d6dfl7sqxvbc5h5lcgk1krgzg5rkssrdzd1h4ma6y8fz"; + }) ]; mesonFlags = [ "-Dsystemd=true" "-Dsystemd_session=default" ]; |