nixpkgs-suyu/pkgs/tools/misc/gparted/default.nix

38 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, intltool, gettext, makeWrapper
, parted, glib, libuuid, pkgconfig, gtkmm2, libxml2, hicolor-icon-theme
, gpart, hdparm, procps, utillinux
}:
stdenv.mkDerivation rec {
name = "gparted-0.31.0";
src = fetchurl {
url = "mirror://sourceforge/gparted/${name}.tar.gz";
sha256 = "1fh7rpgb4xxdhgyjsirb83zvjfc5mfngb8a1pjbv7r6r6jj4jyrv";
};
configureFlags = [ "--disable-doc" ];
buildInputs = [ parted glib libuuid gtkmm2 libxml2 hicolor-icon-theme ];
nativeBuildInputs = [ intltool gettext makeWrapper pkgconfig ];
postInstall = ''
2017-12-19 12:30:20 +01:00
wrapProgram $out/bin/gparted \
--prefix PATH : "${procps}/bin"
wrapProgram $out/sbin/gpartedbin \
2016-08-23 00:06:51 +02:00
--prefix PATH : "${stdenv.lib.makeBinPath [ gpart hdparm utillinux ]}"
'';
2015-01-26 19:50:52 +01:00
meta = with stdenv.lib; {
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;
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}