nixpkgs/pkgs/tools/filesystems/gpart/default.nix
Tobias Geerinckx-Rice 9fb8020e4e Add version attribute where maintainers |= nckx
This will probably be mandatory soon, and is a step in the right
direction. Removes the deprecated meta.version, and move some meta
sections to the end of the file where I should have put them in
the first place.
2016-01-25 17:35:21 +01:00

35 lines
971 B
Nix

{ stdenv, fetchFromGitHub, autoreconfHook }:
stdenv.mkDerivation rec {
name = "gpart-${version}";
version = "0.3";
# GitHub repository 'collating patches for gpart from all distributions':
src = fetchFromGitHub {
sha256 = "1lsd9k876p944k9s6sxqk5yh9yr7m42nbw9vlsllin7pd4djl4ya";
rev = version;
repo = "gpart";
owner = "baruch";
};
nativeBuildInputs = [ autoreconfHook ];
enableParallelBuilding = true;
doCheck = true;
meta = with stdenv.lib; {
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 ];
};
}