2019-08-12 20:41:07 +02:00
|
|
|
{ stdenv, fetchurl, intltool, gettext, makeWrapper, coreutils, gnused, gnome3
|
2019-09-12 16:25:05 +02:00
|
|
|
, gnugrep, parted, glib, libuuid, pkgconfig, gtkmm3, libxml2
|
2019-08-09 00:39:25 +02:00
|
|
|
, gpart, hdparm, procps, utillinux, polkit, wrapGAppsHook, substituteAll
|
2015-06-12 11:53:33 +02:00
|
|
|
}:
|
2010-07-28 17:35:01 +02:00
|
|
|
|
2013-02-14 13:13:10 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2020-01-26 23:10:50 +01:00
|
|
|
name = "gparted-1.1.0";
|
2009-09-10 18:57:21 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-01-21 16:05:42 +01:00
|
|
|
url = "mirror://sourceforge/gparted/${name}.tar.gz";
|
2020-01-26 23:10:50 +01:00
|
|
|
sha256 = "092rgwjh1825fal6v3yafq2wr0i61hh0a2n0j4296zn0zdx7pzp2";
|
2009-09-10 18:57:21 +02:00
|
|
|
};
|
|
|
|
|
2019-08-09 00:39:25 +02:00
|
|
|
# Tries to run `pkexec --version` to get version.
|
|
|
|
# however the binary won't be suid so it returns
|
|
|
|
# an error preventing the program from detection
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./polkit.patch;
|
|
|
|
polkit_version = polkit.version;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2015-11-26 18:44:44 +01:00
|
|
|
configureFlags = [ "--disable-doc" ];
|
2009-09-10 18:57:21 +02:00
|
|
|
|
2019-09-12 16:25:05 +02:00
|
|
|
buildInputs = [ parted glib libuuid gtkmm3 libxml2 polkit.bin gnome3.adwaita-icon-theme ];
|
2019-08-09 00:39:25 +02:00
|
|
|
nativeBuildInputs = [ intltool gettext pkgconfig wrapGAppsHook ];
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--prefix PATH : "${stdenv.lib.makeBinPath [ gpart hdparm utillinux procps coreutils gnused gnugrep ]}"
|
|
|
|
)
|
|
|
|
'';
|
2015-10-29 14:38:09 +01:00
|
|
|
|
2019-08-09 00:39:25 +02:00
|
|
|
# Doesn't get installed automaticallly if PREFIX != /usr
|
2015-10-29 14:38:09 +01:00
|
|
|
postInstall = ''
|
2019-08-09 00:39:25 +02:00
|
|
|
install -D -m0644 org.gnome.gparted.policy \
|
|
|
|
$out/share/polkit-1/actions/org.gnome.gparted.policy
|
2015-10-29 14:38:09 +01:00
|
|
|
'';
|
2009-09-10 18:57:21 +02:00
|
|
|
|
2015-01-26 19:50:52 +01:00
|
|
|
meta = with stdenv.lib; {
|
2010-07-28 17:35:01 +02:00
|
|
|
description = "Graphical disk partitioning tool";
|
2015-01-26 19:50:52 +01:00
|
|
|
longDescription = ''
|
|
|
|
GNOME Partition Editor for creating, reorganizing, and deleting disk
|
|
|
|
partitions. GParted enables you to change the partition organization
|
|
|
|
while preserving the partition contents.
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://gparted.org";
|
2015-05-28 19:20:29 +02:00
|
|
|
license = licenses.gpl2Plus;
|
2015-08-05 00:08:51 +02:00
|
|
|
platforms = platforms.linux;
|
2009-09-10 18:57:21 +02:00
|
|
|
};
|
|
|
|
}
|