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 {
|
2015-03-26 22:00:31 +00:00
|
|
|
name = "gptfdisk-1.0.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";
|
2015-03-26 22:00:31 +00:00
|
|
|
sha256 = "0v0xl0mzwabdf9yisgsvkhpyi48kbik35c6df42gr6d78dkrarjv";
|
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 = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/sbin
|
|
|
|
mkdir -p $out/share/man/man8
|
2013-10-09 14:42:05 +00: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 21:13:35 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A set of text-mode partitioning tools for Globally Unique Identifier (GUID) Partition Table (GPT) disks";
|
|
|
|
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2011-03-14 21:13:35 +00:00
|
|
|
|
|
|
|
homepage = http://www.rodsbooks.com/gdisk/;
|
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|