nixpkgs/pkgs/by-name/ge/genpass/package.nix

32 lines
680 B
Nix

{
lib,
fetchgit,
rustPlatform,
zlib,
}:
rustPlatform.buildRustPackage rec {
pname = "genpass";
version = "0.5.1";
src = fetchgit {
url = "https://git.sr.ht/~cyplo/genpass";
rev = "v${version}";
sha256 = "UyEgOlKtDyneRteN3jHA2BJlu5U1HFL8HA2MTQz5rns=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-tcE2TugvTJyUsgkxff31U/PIiO1IMr4rO6FKYP/oEiw=";
buildInputs = [
zlib
];
meta = with lib; {
description = "Simple yet robust commandline random password generator";
mainProgram = "genpass";
homepage = "https://sr.ht/~cyplo/genpass/";
license = licenses.agpl3Only;
maintainers = with maintainers; [ cyplo ];
};
}