depot/third_party/nixpkgs/pkgs/tools/security/genpass/default.nix
Default email d6cfb865ad Project import generated by Copybara.
GitOrigin-RevId: 5265d49a36bb5a18c85e6817b338b456acc3b8cc
2020-10-18 20:13:06 -04:00

29 lines
735 B
Nix

{ stdenv
, fetchFromGitHub
, rustPlatform
, CoreFoundation
, libiconv
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "genpass";
version = "0.4.1";
src = fetchFromGitHub {
owner = "cyplo";
repo = pname;
rev = "v${version}";
sha256 = "1b22m7g55k5ry0vwyd8pakh8rmfkhk37qy5r74cn3n5pv3fcwini";
};
cargoSha256 = "1p6l64s9smhwka8bh3pamqimamxziad859i62nrmxzqc49nq5s7m";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreFoundation libiconv Security ];
meta = with stdenv.lib; {
description = "A simple yet robust commandline random password generator";
homepage = "https://github.com/cyplo/genpass";
license = licenses.agpl3;
maintainers = with maintainers; [ cyplo ];
};
}