about summary refs log tree commit diff
path: root/pkgs/tools/system/gptman/default.nix
blob: ed486fbf4c5297d145a07d38d15bc6efa2882f0c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, stdenv, fetchFromGitHub, rustPlatform, libiconv }:

rustPlatform.buildRustPackage rec {
  pname = "gptman";
  version = "0.8.2";

  src = fetchFromGitHub {
    owner = "cecton";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-MWrTwVXlV2B8GzYRgI3np6NqqSGPbRZCKpLU7aC1mX0=";
  };

  cargoSha256 = "sha256-dVvZTYk17fyurtrJxjUgkxU37rxJubiTAQ1AWMnFP4s=";

  buildInputs = lib.optional stdenv.isDarwin libiconv;

  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 ];
  };
}