nixpkgs/pkgs/tools/system/gptfdisk/default.nix

33 lines
821 B
Nix
Raw Normal View History

{ fetchurl, stdenv, libuuid, popt, icu, ncurses }:
stdenv.mkDerivation rec {
2015-03-26 22:00:31 +00:00
name = "gptfdisk-1.0.0";
src = fetchurl {
url = "mirror://sourceforge/gptfdisk/${name}.tar.gz";
2015-03-26 22:00:31 +00:00
sha256 = "0v0xl0mzwabdf9yisgsvkhpyi48kbik35c6df42gr6d78dkrarjv";
};
buildInputs = [ libuuid popt icu ncurses ];
installPhase = ''
mkdir -p $out/sbin
mkdir -p $out/share/man/man8
for prog in gdisk sgdisk fixparts cgdisk
do
install -v -m755 $prog $out/sbin
install -v -m644 $prog.8 $out/share/man/man8
done
'';
meta = {
description = "A set of text-mode partitioning tools for Globally Unique Identifier (GUID) Partition Table (GPT) disks";
license = stdenv.lib.licenses.gpl2;
homepage = http://www.rodsbooks.com/gdisk/;
platforms = stdenv.lib.platforms.linux;
};
}