about summary refs log tree commit diff
path: root/pkgs/tools/system/gptman
diff options
context:
space:
mode:
authorAksh Gupta <akshgpt7@gmail.com>2021-04-25 08:15:50 +0530
committerAksh Gupta <akshgpt7@gmail.com>2021-04-25 08:15:50 +0530
commit5b6e08ba57ac384c7206e941448746849cf34a51 (patch)
treee394d82b2120a7bcc17e377b4a35531478de5ba8 /pkgs/tools/system/gptman
parent61c911949170aba11a6735a89056f9e3c34dc057 (diff)
gptman: init at 0.8.0
Diffstat (limited to 'pkgs/tools/system/gptman')
-rw-r--r--pkgs/tools/system/gptman/default.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/tools/system/gptman/default.nix b/pkgs/tools/system/gptman/default.nix
new file mode 100644
index 0000000000000..5209856edeb02
--- /dev/null
+++ b/pkgs/tools/system/gptman/default.nix
@@ -0,0 +1,22 @@
+{ lib, fetchFromGitHub, rustPlatform }:
+
+rustPlatform.buildRustPackage rec {
+  pname = "gptman";
+  version = "0.8.0";
+
+  src = fetchFromGitHub {
+    owner = "cecton";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "11zyjrw4f8gi5s4sd2kl3sdiz0avq7clr8zqnwl04y61b3fpg7y1";
+  };
+
+  cargoSha256 = "1cp8cyrd7ab8r2j28b69c2p3ysix5b9hpsqk07cmzgqwwml0qj12";
+
+  meta = with lib; {
+    description = "A CLI tool for Linux to copy a partition from one disk to another and more.";
+    homepage = "https://github.com/cecton/gptman";
+    license = with licenses; [ asl20 /* or */ mit ];
+    maintainers = with maintainers; [ akshgpt7 ];
+  };
+}