summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-11-17 23:38:03 +0100
committerTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-11-17 23:38:03 +0100
commita5bad31da36ae73b9839210149fc621135e64e4a (patch)
tree633acf103495626a95b422061e21745c7d2c8fcb /pkgs
parenta7e8addf98feb2e9b7eeb0f1251645a35e3eb6cb (diff)
parent7392ae1a3a3e3d101c7282aa9ee42d06ba171b5a (diff)
downloadnixlib-a5bad31da36ae73b9839210149fc621135e64e4a.tar
nixlib-a5bad31da36ae73b9839210149fc621135e64e4a.tar.gz
nixlib-a5bad31da36ae73b9839210149fc621135e64e4a.tar.bz2
nixlib-a5bad31da36ae73b9839210149fc621135e64e4a.tar.lz
nixlib-a5bad31da36ae73b9839210149fc621135e64e4a.tar.xz
nixlib-a5bad31da36ae73b9839210149fc621135e64e4a.tar.zst
nixlib-a5bad31da36ae73b9839210149fc621135e64e4a.zip
Merge pull request #11105 from nckx/add-gpart
gpart: init at 0.2.2
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/filesystems/gpart/default.nix35
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/tools/filesystems/gpart/default.nix b/pkgs/tools/filesystems/gpart/default.nix
new file mode 100644
index 000000000000..551870342a92
--- /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 ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 73a3e81dfbee..744ad14e4c95 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -1663,6 +1663,8 @@ let
 
   gource = callPackage ../applications/version-management/gource { };
 
+  gpart = callPackage ../tools/filesystems/gpart { };
+
   gparted = callPackage ../tools/misc/gparted { };
 
   gpodder = callPackage ../applications/audio/gpodder { };