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-12-16 00:18:24 +01:00
|
|
|
name = "gptfdisk-0.8.8";
|
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-12-16 00:18:24 +01:00
|
|
|
sha256 = "16myqa72mp0wyhca8il299h1gd6k6sr7m52qcr97j840wk0fjcac";
|
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";
|
|
|
|
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2011-03-14 22:13:35 +01:00
|
|
|
|
|
|
|
homepage = http://www.rodsbooks.com/gdisk/;
|
|
|
|
|
2013-12-11 21:00:31 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|