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

23 lines
587 B
Nix
Raw Normal View History

2021-09-20 17:51:28 +00:00
{ lib, rustPlatform, fetchCrate }:
rustPlatform.buildRustPackage rec {
pname = "rust-petname";
2021-10-25 12:11:26 +00:00
version = "1.1.2";
2021-09-20 17:51:28 +00:00
src = fetchCrate {
inherit version;
crateName = "petname";
2021-10-25 12:11:26 +00:00
sha256 = "sha256-DfRWGwnWVJBcbW7aPEzgPd+gfldP+ypZlk8FcPZzp8g=";
2021-09-20 17:51:28 +00:00
};
2021-10-25 12:11:26 +00:00
cargoSha256 = "sha256-tCVJX8NcbT+6t2kDeCMfcSDaq3O89ycj08bxTmp3JHs=";
2021-09-20 17:51:28 +00: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";
};
}