2011-09-17 12:54:46 +00:00
|
|
|
{ fetchurl, stdenv, libuuid, popt, icu, ncurses }:
|
2011-03-14 21:13:35 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2011-09-17 12:54:46 +00:00
|
|
|
name = "gptfdisk-0.8.0";
|
2011-03-14 21:13:35 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-09-17 12:54:46 +00:00
|
|
|
url = "mirror://sourceforge/gptfdisk/${name}.tar.gz";
|
|
|
|
sha256 = "096qmlqcsvjklihggwphdmd0y78jz4ghf7gf4fvjnskp7mg4ng31";
|
2011-03-14 21:13:35 +00:00
|
|
|
};
|
|
|
|
|
2011-09-17 12:54:46 +00:00
|
|
|
buildInputs = [ libuuid popt icu ncurses ];
|
2011-03-14 21:13:35 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2011-04-01 14:12:53 +00:00
|
|
|
ensureDir $out/sbin
|
2011-03-14 21:13:35 +00:00
|
|
|
ensureDir $out/share/man/man8
|
2011-04-01 14:12:53 +00:00
|
|
|
install -v -m755 gdisk sgdisk fixparts $out/sbin
|
2011-03-14 21:13:35 +00:00
|
|
|
install -v -m644 gdisk.8 sgdisk.8 fixparts.8 \
|
|
|
|
$out/share/man/man8
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A set of text-mode partitioning tools for Globally Unique Identifier (GUID) Partition Table (GPT) disks";
|
|
|
|
|
|
|
|
license = "GPLv2";
|
|
|
|
|
|
|
|
homepage = http://www.rodsbooks.com/gdisk/;
|
|
|
|
|
|
|
|
maintainers = stdenv.lib.maintainers.shlevy;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|
2011-03-27 14:02:51 +00:00
|
|
|
|