2015-10-29 13:38:09 +00:00
|
|
|
{ stdenv, fetchurl, intltool, gettext, makeWrapper
|
2019-05-31 09:52:17 +01:00
|
|
|
, parted, glib, libuuid, pkgconfig, gtkmm3, libxml2, hicolor-icon-theme
|
2015-11-19 22:39:15 +00:00
|
|
|
, gpart, hdparm, procps, utillinux
|
2015-06-12 10:53:33 +01:00
|
|
|
}:
|
2010-07-28 16:35:01 +01:00
|
|
|
|
2013-02-14 12:13:10 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-05-31 09:52:17 +01:00
|
|
|
name = "gparted-1.0.0";
|
2009-09-10 17:57:21 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-01-21 15:05:42 +00:00
|
|
|
url = "mirror://sourceforge/gparted/${name}.tar.gz";
|
2019-05-31 09:52:17 +01:00
|
|
|
sha256 = "0mdvn85jvy72ff7nds3dakx9kzknh8gx1z8i0w2sf970q03qp2z4";
|
2009-09-10 17:57:21 +01:00
|
|
|
};
|
|
|
|
|
2015-11-26 17:44:44 +00:00
|
|
|
configureFlags = [ "--disable-doc" ];
|
2009-09-10 17:57:21 +01:00
|
|
|
|
2019-05-31 09:52:17 +01:00
|
|
|
buildInputs = [ parted glib libuuid gtkmm3 libxml2 hicolor-icon-theme ];
|
2015-10-29 13:38:09 +00:00
|
|
|
nativeBuildInputs = [ intltool gettext makeWrapper pkgconfig ];
|
|
|
|
|
|
|
|
postInstall = ''
|
2017-12-19 11:30:20 +00:00
|
|
|
wrapProgram $out/bin/gparted \
|
2015-11-19 22:39:15 +00:00
|
|
|
--prefix PATH : "${procps}/bin"
|
2015-10-29 13:38:09 +00:00
|
|
|
wrapProgram $out/sbin/gpartedbin \
|
2016-08-22 23:06:51 +01:00
|
|
|
--prefix PATH : "${stdenv.lib.makeBinPath [ gpart hdparm utillinux ]}"
|
2015-10-29 13:38:09 +00:00
|
|
|
'';
|
2009-09-10 17:57:21 +01:00
|
|
|
|
2015-01-26 18:50:52 +00:00
|
|
|
meta = with stdenv.lib; {
|
2010-07-28 16:35:01 +01:00
|
|
|
description = "Graphical disk partitioning tool";
|
2015-01-26 18:50:52 +00: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.
|
|
|
|
'';
|
2018-05-01 04:03:23 +01:00
|
|
|
homepage = https://gparted.org;
|
2015-05-28 18:20:29 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2015-08-04 23:08:51 +01:00
|
|
|
platforms = platforms.linux;
|
2009-09-10 17:57:21 +01:00
|
|
|
};
|
|
|
|
}
|