depot/third_party/nixpkgs/pkgs/tools/security/genpass/default.nix
Default email a5adf1ddd8 Project import generated by Copybara.
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
2021-01-15 23:18:51 +01:00

28 lines
716 B
Nix

{ lib, stdenv
, fetchgit
, rustPlatform
, CoreFoundation
, libiconv
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "genpass";
version = "0.4.9";
src = fetchgit {
url = "https://git.sr.ht/~cyplo/genpass";
rev = "v${version}";
sha256 = "1dpv2iyd48xd8yw9bmymjjrkhsgmpwvsl5b9zx3lpaaq59ypi9g9";
};
cargoSha256 = "1cwxpc3xkw673wiamr4v7clrzwxl8ma1vdr6bw0hixm37gxdxz7x";
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.agpl3;
maintainers = with maintainers; [ cyplo ];
};
}