1 { lib, stdenv, fetchFromGitHub, autoreconfHook }:
3 stdenv.mkDerivation rec {
7 # GitHub repository 'collating patches for gpart from all distributions':
8 src = fetchFromGitHub {
9 sha256 = "1lsd9k876p944k9s6sxqk5yh9yr7m42nbw9vlsllin7pd4djl4ya";
15 nativeBuildInputs = [ autoreconfHook ];
17 enableParallelBuilding = true;
22 inherit (src.meta) homepage;
23 description = "Guess PC-type hard disk partitions";
25 Gpart is a tool which tries to guess the primary partition table of a
26 PC-type hard disk in case the primary partition table in sector 0 is
27 damaged, incorrect or deleted. The guessed table can be written to a file
30 license = licenses.gpl2Plus;
31 platforms = platforms.linux;
32 mainProgram = "gpart";