Merge pull request #328086 from Enzime/fix/gparted-wayland

gparted: fix GParted not running on Wayland
This commit is contained in:
Sandro 2024-08-16 10:58:42 +02:00 committed by GitHub
commit f07b327f8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 ]}"
)
'';