nixpkgs/pkgs/tools/text/rust-petname/default.nix

23 lines
587 B
Nix
Raw Normal View History

2021-09-20 19:51:28 +02:00
{ lib, rustPlatform, fetchCrate }:
rustPlatform.buildRustPackage rec {
pname = "rust-petname";
2021-10-25 14:11:26 +02:00
version = "1.1.2";
2021-09-20 19:51:28 +02:00
src = fetchCrate {
inherit version;
crateName = "petname";
2021-10-25 14:11:26 +02:00
sha256 = "sha256-DfRWGwnWVJBcbW7aPEzgPd+gfldP+ypZlk8FcPZzp8g=";
2021-09-20 19:51:28 +02:00
};
2021-10-25 14:11:26 +02:00
cargoSha256 = "sha256-tCVJX8NcbT+6t2kDeCMfcSDaq3O89ycj08bxTmp3JHs=";
2021-09-20 19:51:28 +02:00
meta = with lib; {
description = "Generate human readable random names";
homepage = "https://github.com/allenap/rust-petname";
license = licenses.asl20;
maintainers = with maintainers; [ figsoda ];
mainProgram = "petname";
};
}