nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 39 lines 950 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "gpart"; 10 version = "0.3"; 11 12 # GitHub repository 'collating patches for gpart from all distributions': 13 src = fetchFromGitHub { 14 sha256 = "1lsd9k876p944k9s6sxqk5yh9yr7m42nbw9vlsllin7pd4djl4ya"; 15 rev = version; 16 repo = "gpart"; 17 owner = "baruch"; 18 }; 19 20 nativeBuildInputs = [ autoreconfHook ]; 21 22 enableParallelBuilding = true; 23 24 doCheck = true; 25 26 meta = with lib; { 27 inherit (src.meta) homepage; 28 description = "Guess PC-type hard disk partitions"; 29 longDescription = '' 30 Gpart is a tool which tries to guess the primary partition table of a 31 PC-type hard disk in case the primary partition table in sector 0 is 32 damaged, incorrect or deleted. The guessed table can be written to a file 33 or device. 34 ''; 35 license = licenses.gpl2Plus; 36 platforms = platforms.linux; 37 mainProgram = "gpart"; 38 }; 39}