2011-09-17 14:54:46 +02:00
|
|
|
{ fetchurl, stdenv, libuuid, popt, icu, ncurses }:
|
2011-03-14 22:13:35 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-10-09 16:42:05 +02:00
|
|
|
name = "gptfdisk-0.8.6";
|
2011-03-14 22:13:35 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-09-17 14:54:46 +02:00
|
|
|
url = "mirror://sourceforge/gptfdisk/${name}.tar.gz";
|
2013-10-09 16:42:05 +02:00
|
|
|
sha256 = "1cj7lribq8f3i4q6463q08bs42pvlzfj0iz2f2cnjn94hiacsya5";
|
2011-03-14 22:13:35 +01:00
|
|
|
};
|
|
|
|
|
2011-09-17 14:54:46 +02:00
|
|
|
buildInputs = [ libuuid popt icu ncurses ];
|
2011-03-14 22:13:35 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/sbin
|
|
|
|
mkdir -p $out/share/man/man8
|
2013-10-09 16:42:05 +02:00
|
|
|
for prog in gdisk sgdisk fixparts cgdisk
|
|
|
|
do
|
|
|
|
install -v -m755 $prog $out/sbin
|
|
|
|
install -v -m644 $prog.8 $out/share/man/man8
|
|
|
|
done
|
2011-03-14 22:13:35 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
2013-10-09 16:42:05 +02:00
|
|
|
|
2011-03-14 22:13:35 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|
2011-03-27 16:02:51 +02:00
|
|
|
|