From b10c9c4824039b6b1fa57c2f4d246d710e5e9f81 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 --- 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 eef6062c73a5..9f5192c6d996 100644 --- a/pkgs/tools/misc/gparted/default.nix +++ b/pkgs/tools/misc/gparted/default.nix @@ -2,7 +2,7 @@ , adwaita-icon-theme , gnugrep, parted, glib, libuuid, pkg-config, gtkmm3, libxml2 , gpart, hdparm, procps, util-linux, polkit, wrapGAppsHook3, substituteAll -, mtools, dosfstools +, mtools, dosfstools, xhost }: stdenv.mkDerivation rec { @@ -26,7 +26,7 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - configureFlags = [ "--disable-doc" ]; + configureFlags = [ "--disable-doc" "--enable-xhost-root" ]; buildInputs = [ parted glib libuuid gtkmm3 libxml2 polkit.bin adwaita-icon-theme ]; nativeBuildInputs = [ gettext pkg-config wrapGAppsHook3 ]; @@ -38,7 +38,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 ]}" ) '';