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

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

31 lines
884 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";
2023-09-19 01:16:45 +00:00
version = "1.0.2";
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}";
2023-09-19 01:16:45 +00:00
hash = "sha256-Qi2nrvF566AK+JsP7V9tVQXwAU63TNpfTFZLuM/h1Ps=";
2021-04-25 02:45:50 +00:00
};
2023-09-19 01:16:45 +00:00
cargoHash = "sha256-YMlwlSq14S37SqewglvxZYUL67fT66hh22t0N8h+2vk=";
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 ];
};
}