2011-09-17 13:54:46 +01: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 13:54:46 +01: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 13:54:46 +01: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 15:42:05 +01: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 05:19:00 +01: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 15:42:05 +01:00
|
|
|
|
2011-03-14 21:13:35 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|