diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/security/genpass/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/security/genpass/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/security/genpass/default.nix b/nixpkgs/pkgs/tools/security/genpass/default.nix new file mode 100644 index 000000000000..9565bf80c950 --- /dev/null +++ b/nixpkgs/pkgs/tools/security/genpass/default.nix @@ -0,0 +1,28 @@ +{ lib, stdenv +, fetchgit +, rustPlatform +, CoreFoundation +, libiconv +, Security +}: +rustPlatform.buildRustPackage rec { + pname = "genpass"; + version = "0.5.1"; + + src = fetchgit { + url = "https://git.sr.ht/~cyplo/genpass"; + rev = "v${version}"; + sha256 = "UyEgOlKtDyneRteN3jHA2BJlu5U1HFL8HA2MTQz5rns="; + }; + + cargoSha256 = "ls3tzZ+gtZQlObmbtwJDq6N/f5nY+Ps7RL5R/fR5Vgg="; + + buildInputs = lib.optionals stdenv.isDarwin [ CoreFoundation libiconv Security ]; + + meta = with lib; { + description = "A simple yet robust commandline random password generator"; + homepage = "https://sr.ht/~cyplo/genpass/"; + license = licenses.agpl3Only; + maintainers = with maintainers; [ cyplo ]; + }; +} |