nixpkgs/pkgs/tools/system/gptman/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
912 B
Nix
Raw Normal View History

2023-08-14 04:25:02 +00:00
{ lib, stdenv, fetchFromGitHub, rustPlatform, libiconv, testers, gptman }:
2021-04-25 02:45:50 +00:00
rustPlatform.buildRustPackage rec {
pname = "gptman";
2024-01-16 07:40:51 +00:00
version = "1.1.0";
2021-04-25 02:45:50 +00:00
src = fetchFromGitHub {
2023-08-14 04:25:02 +00:00
owner = "rust-disk-partition-management";
2021-04-25 02:45:50 +00:00
repo = pname;
rev = "v${version}";
2024-01-16 07:40:51 +00:00
hash = "sha256-ebV61EilGggix6JSN/MW4Ka0itkSpvikLDSO005TTYY=";
2021-04-25 02:45:50 +00:00
};
2024-01-16 07:40:51 +00:00
cargoHash = "sha256-P+qez0oVsHBiaBYban2o8MRvF8ElLf5zb+p+tYunWWA=";
2021-04-25 02:45:50 +00:00
2021-05-15 21:06:04 +00:00
buildInputs = lib.optional stdenv.isDarwin libiconv;
2023-08-14 04:25:02 +00:00
buildFeatures = [ "cli" ];
passthru.tests.version = testers.testVersion {
package = gptman;
};
2021-04-25 02:45:50 +00:00
meta = with lib; {
2023-08-14 04:25:02 +00:00
description = "A GPT manager that allows you to copy partitions from one disk to another and more";
homepage = "https://github.com/rust-disk-partition-management/gptman";
2021-04-25 02:45:50 +00:00
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ akshgpt7 ];
2023-11-27 01:17:53 +00:00
mainProgram = "gptman";
2021-04-25 02:45:50 +00:00
};
}