2023-08-22 20:05:09 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, libiconv, testers, gptman }:
|
2021-04-26 19:14:03 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "gptman";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "1.1.0";
|
2021-04-26 19:14:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-08-22 20:05:09 +00:00
|
|
|
owner = "rust-disk-partition-management";
|
2021-04-26 19:14:03 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-ebV61EilGggix6JSN/MW4Ka0itkSpvikLDSO005TTYY=";
|
2021-04-26 19:14:03 +00:00
|
|
|
};
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
cargoHash = "sha256-P+qez0oVsHBiaBYban2o8MRvF8ElLf5zb+p+tYunWWA=";
|
2021-04-26 19:14:03 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
buildInputs = lib.optional stdenv.hostPlatform.isDarwin libiconv;
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
buildFeatures = [ "cli" ];
|
|
|
|
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = gptman;
|
|
|
|
};
|
|
|
|
|
2021-04-26 19:14:03 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "GPT manager that allows you to copy partitions from one disk to another and more";
|
2023-08-22 20:05:09 +00:00
|
|
|
homepage = "https://github.com/rust-disk-partition-management/gptman";
|
2021-04-26 19:14:03 +00:00
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
|
|
maintainers = with maintainers; [ akshgpt7 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "gptman";
|
2021-04-26 19:14:03 +00:00
|
|
|
};
|
|
|
|
}
|