2015-10-29 14:38:09 +01:00
|
|
|
{ stdenv, fetchurl, intltool, gettext, makeWrapper
|
2018-02-25 03:23:58 +01:00
|
|
|
, parted, glib, libuuid, pkgconfig, gtkmm2, libxml2, hicolor-icon-theme
|
2015-11-19 23:39:15 +01:00
|
|
|
, gpart, hdparm, procps, utillinux
|
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 {
|
2018-03-20 11:43:26 +01:00
|
|
|
name = "gparted-0.31.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";
|
2018-03-20 11:43:26 +01:00
|
|
|
sha256 = "1fh7rpgb4xxdhgyjsirb83zvjfc5mfngb8a1pjbv7r6r6jj4jyrv";
|
2009-09-10 18:57:21 +02:00
|
|
|
};
|
|
|
|
|
2015-11-26 18:44:44 +01:00
|
|
|
configureFlags = [ "--disable-doc" ];
|
2009-09-10 18:57:21 +02:00
|
|
|
|
2018-02-25 03:23:58 +01:00
|
|
|
buildInputs = [ parted glib libuuid gtkmm2 libxml2 hicolor-icon-theme ];
|
2015-10-29 14:38:09 +01:00
|
|
|
nativeBuildInputs = [ intltool gettext makeWrapper pkgconfig ];
|
|
|
|
|
|
|
|
postInstall = ''
|
2017-12-19 12:30:20 +01:00
|
|
|
wrapProgram $out/bin/gparted \
|
2015-11-19 23:39:15 +01:00
|
|
|
--prefix PATH : "${procps}/bin"
|
2015-10-29 14:38:09 +01:00
|
|
|
wrapProgram $out/sbin/gpartedbin \
|
2016-08-23 00:06:51 +02:00
|
|
|
--prefix PATH : "${stdenv.lib.makeBinPath [ gpart hdparm utillinux ]}"
|
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.
|
|
|
|
'';
|
2018-05-01 05:03:23 +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
|
|
|
};
|
|
|
|
}
|