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 {
|
2013-12-15 23:18:24 +00:00
|
|
|
name = "gptfdisk-0.8.8";
|
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";
|
2013-12-15 23:18:24 +00:00
|
|
|
sha256 = "16myqa72mp0wyhca8il299h1gd6k6sr7m52qcr97j840wk0fjcac";
|
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/;
|
|
|
|
|
2013-12-11 20:00:31 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.shlevy ];
|
2013-10-09 14:42:05 +00:00
|
|
|
|
2011-03-14 21:13:35 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|