about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/system/fdisk/default.nix
blob: 423b00bd5439419962031a13765709745b8ecc17 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ fetchurl, stdenv, parted, libuuid, gettext, guile }:

stdenv.mkDerivation rec {
  name = "gnufdisk-2.0.0a"; # .0a1 seems broken, see https://lists.gnu.org/archive/html/bug-fdisk/2012-09/msg00000.html

  src = fetchurl {
    url = "mirror://gnu/fdisk/${name}.tar.gz";
    sha256 = "04nd7civ561x2lwcmxhsqbprml3178jfc58fy1v7hzqg5k4nbhy3";
  };

  buildInputs = [ parted libuuid gettext guile ];

  doCheck = true;

  meta = {
    description = "A command-line disk partitioning tool";

    longDescription = ''
      GNU fdisk provides alternatives to util-linux fdisk and util-linux
      cfdisk.  It uses GNU Parted.
    '';

    license = stdenv.lib.licenses.gpl3Plus;

    homepage = "https://www.gnu.org/software/fdisk/";

    platforms = stdenv.lib.platforms.linux;
  };
}