diff options
author | Tobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com> | 2015-11-17 23:09:04 +0100 |
---|---|---|
committer | Tobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com> | 2015-11-17 23:09:04 +0100 |
commit | 7392ae1a3a3e3d101c7282aa9ee42d06ba171b5a (patch) | |
tree | 9112ea5019567c29aa7a7acf7d6131ca1ef0cd16 /pkgs/tools/filesystems | |
parent | 8ca605fccb1760e06cf79b2898e05b63848e434c (diff) |
gpart: init at 0.2.2
Diffstat (limited to 'pkgs/tools/filesystems')
-rw-r--r-- | pkgs/tools/filesystems/gpart/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/tools/filesystems/gpart/default.nix b/pkgs/tools/filesystems/gpart/default.nix new file mode 100644 index 0000000000000..551870342a92c --- /dev/null +++ b/pkgs/tools/filesystems/gpart/default.nix @@ -0,0 +1,35 @@ +{ stdenv, fetchFromGitHub, autoreconfHook }: + +let version = "0.2.2"; in +stdenv.mkDerivation rec { + name = "gpart-${version}"; + + # GitHub repository 'collating patches for gpart from all distributions': + src = fetchFromGitHub { + sha256 = "09lp8m4241mxq7rlg70z66km7pq5bq48ydgkz55gakwqvnvd1mi3"; + rev = "v${version}"; + repo = "gpart"; + owner = "baruch"; + }; + + nativeBuildInputs = [ autoreconfHook ]; + + enableParallelBuilding = true; + + doCheck = true; + + meta = with stdenv.lib; { + inherit version; + inherit (src.meta) homepage; + description = "Guess PC-type hard disk partitions"; + longDescription = '' + Gpart is a tool which tries to guess the primary partition table of a + PC-type hard disk in case the primary partition table in sector 0 is + damaged, incorrect or deleted. The guessed table can be written to a file + or device. + ''; + license = licenses.gpl2Plus; + platforms = platforms.unix; + maintainers = with maintainers; [ nckx ]; + }; +} |