2021-05-15 21:06:04 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, libiconv }:
|
2021-04-25 02:45:50 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "gptman";
|
|
|
|
version = "0.8.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cecton";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "11zyjrw4f8gi5s4sd2kl3sdiz0avq7clr8zqnwl04y61b3fpg7y1";
|
|
|
|
};
|
|
|
|
|
|
|
|
cargoSha256 = "1cp8cyrd7ab8r2j28b69c2p3ysix5b9hpsqk07cmzgqwwml0qj12";
|
|
|
|
|
2021-05-15 21:06:04 +00:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin libiconv;
|
|
|
|
|
2021-04-25 02:45:50 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|