Bobby Rong 2023-04-15 23:09:10 +08:00
parent fe2ecaf706
commit 87e450cbbc
No known key found for this signature in database

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, intltool, gettext, coreutils, gnused, gnome { lib, stdenv, fetchurl, gettext, coreutils, gnused, gnome
, gnugrep, parted, glib, libuuid, pkg-config, gtkmm3, libxml2 , gnugrep, parted, glib, libuuid, pkg-config, gtkmm3, libxml2
, gpart, hdparm, procps, util-linux, polkit, wrapGAppsHook, substituteAll , gpart, hdparm, procps, util-linux, polkit, wrapGAppsHook, substituteAll
, mtools, dosfstools , mtools, dosfstools
@ -6,11 +6,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "gparted"; pname = "gparted";
version = "1.4.0"; version = "1.5.0";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/gparted/${pname}-${version}.tar.gz"; url = "mirror://sourceforge/gparted/${pname}-${version}.tar.gz";
sha256 = "sha256-5Sk6eS5T/b66KcSoNBE82WA9DWOTMNqTGkaL82h4h74="; sha256 = "sha256-PJXqJqlECD/x2bF2ObHirZdY3yJdx1H/QHsqaqCSqN4=";
}; };
# Tries to run `pkexec --version` to get version. # Tries to run `pkexec --version` to get version.
@ -28,7 +28,12 @@ stdenv.mkDerivation rec {
configureFlags = [ "--disable-doc" ]; configureFlags = [ "--disable-doc" ];
buildInputs = [ parted glib libuuid gtkmm3 libxml2 polkit.bin gnome.adwaita-icon-theme ]; buildInputs = [ parted glib libuuid gtkmm3 libxml2 polkit.bin gnome.adwaita-icon-theme ];
nativeBuildInputs = [ intltool gettext pkg-config wrapGAppsHook ]; nativeBuildInputs = [ gettext pkg-config wrapGAppsHook ];
preConfigure = ''
# For ITS rules
addToSearchPath "XDG_DATA_DIRS" "${polkit.out}/share"
'';
preFixup = '' preFixup = ''
gappsWrapperArgs+=( gappsWrapperArgs+=(