Files
nixpkgs/pkgs/by-name/gp/gptman/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

43 lines
953 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
libiconv,
testers,
gptman,
}:
rustPlatform.buildRustPackage rec {
pname = "gptman";
version = "1.1.0";
src = fetchFromGitHub {
owner = "rust-disk-partition-management";
repo = "gptman";
rev = "v${version}";
hash = "sha256-ebV61EilGggix6JSN/MW4Ka0itkSpvikLDSO005TTYY=";
};
cargoHash = "sha256-v27tKdBPrtRwpNZRjyv8N7BpxOz6ZgFHaa5pe51YrTI=";
buildInputs = lib.optional stdenv.hostPlatform.isDarwin libiconv;
buildFeatures = [ "cli" ];
passthru.tests.version = testers.testVersion {
package = gptman;
};
meta = with lib; {
description = "GPT manager that allows you to copy partitions from one disk to another and more";
homepage = "https://github.com/rust-disk-partition-management/gptman";
license = with licenses; [
asl20 # or
mit
];
maintainers = with maintainers; [ akshgpt7 ];
mainProgram = "gptman";
};
}