mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 01:23:03 +00:00
755b915a15
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/'
30 lines
731 B
Nix
30 lines
731 B
Nix
{ 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 = "Simple yet robust commandline random password generator";
|
|
mainProgram = "genpass";
|
|
homepage = "https://sr.ht/~cyplo/genpass/";
|
|
license = licenses.agpl3Only;
|
|
maintainers = with maintainers; [ cyplo ];
|
|
};
|
|
}
|