From 6e0ed0b7e82cab1ff0bdcf96f33227babd5e52fe Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Thu, 18 Jul 2024 14:15:51 +1000 Subject: [PATCH] gparted: fix GParted not running on Wayland Fixes https://github.com/NixOS/nixpkgs/issues/299729 (cherry picked from commit b10c9c4824039b6b1fa57c2f4d246d710e5e9f81) --- pkgs/tools/misc/gparted/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/misc/gparted/default.nix b/pkgs/tools/misc/gparted/default.nix index d12babfddfafd43..585248ddaed8a3d 100644 --- a/pkgs/tools/misc/gparted/default.nix +++ b/pkgs/tools/misc/gparted/default.nix @@ -1,7 +1,7 @@ { lib, stdenv, fetchurl, gettext, coreutils, gnused, gnome , gnugrep, parted, glib, libuuid, pkg-config, gtkmm3, libxml2 , gpart, hdparm, procps, util-linux, polkit, wrapGAppsHook3, substituteAll -, mtools, dosfstools +, mtools, dosfstools, xhost }: stdenv.mkDerivation rec { @@ -25,7 +25,7 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - configureFlags = [ "--disable-doc" ]; + configureFlags = [ "--disable-doc" "--enable-xhost-root" ]; buildInputs = [ parted glib libuuid gtkmm3 libxml2 polkit.bin gnome.adwaita-icon-theme ]; nativeBuildInputs = [ gettext pkg-config wrapGAppsHook3 ]; @@ -37,7 +37,7 @@ stdenv.mkDerivation rec { preFixup = '' gappsWrapperArgs+=( - --prefix PATH : "${lib.makeBinPath [ gpart hdparm util-linux procps coreutils gnused gnugrep mtools dosfstools ]}" + --prefix PATH : "${lib.makeBinPath [ gpart hdparm util-linux procps coreutils gnused gnugrep mtools dosfstools xhost ]}" ) '';