nixpkgs/pkgs/tools/system/gptman/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

32 lines
910 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 = pname;
rev = "v${version}";
hash = "sha256-ebV61EilGggix6JSN/MW4Ka0itkSpvikLDSO005TTYY=";
};
cargoHash = "sha256-P+qez0oVsHBiaBYban2o8MRvF8ElLf5zb+p+tYunWWA=";
buildInputs = lib.optional stdenv.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";
};
}