2020-05-01 23:21:28 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
2020-08-16 15:22:56 +02:00
|
|
|
, CoreFoundation
|
|
|
|
, libiconv
|
|
|
|
, Security
|
2020-05-01 23:21:28 +02:00
|
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "genpass";
|
|
|
|
version = "0.4.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cyplo";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1b22m7g55k5ry0vwyd8pakh8rmfkhk37qy5r74cn3n5pv3fcwini";
|
|
|
|
};
|
|
|
|
|
|
|
|
cargoSha256 = "1p6l64s9smhwka8bh3pamqimamxziad859i62nrmxzqc49nq5s7m";
|
|
|
|
|
2020-08-16 15:22:56 +02:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreFoundation libiconv Security ];
|
|
|
|
|
2020-05-01 23:21:28 +02:00
|
|
|
meta = with stdenv.lib; {
|
2020-10-11 07:55:05 +02:00
|
|
|
description = "A simple yet robust commandline random password generator";
|
2020-05-01 23:21:28 +02:00
|
|
|
homepage = "https://github.com/cyplo/genpass";
|
|
|
|
license = licenses.agpl3;
|
|
|
|
maintainers = with maintainers; [ cyplo ];
|
|
|
|
};
|
|
|
|
}
|