2020-05-01 22:21:28 +01:00
|
|
|
{ stdenv
|
2020-11-01 00:56:18 +00:00
|
|
|
, fetchgit
|
2020-05-01 22:21:28 +01:00
|
|
|
, rustPlatform
|
2020-08-16 14:22:56 +01:00
|
|
|
, CoreFoundation
|
|
|
|
, libiconv
|
|
|
|
, Security
|
2020-05-01 22:21:28 +01:00
|
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "genpass";
|
2020-11-01 00:56:18 +00:00
|
|
|
version = "0.4.9";
|
2020-05-01 22:21:28 +01:00
|
|
|
|
2020-11-01 00:56:18 +00:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.sr.ht/~cyplo/genpass";
|
2020-05-01 22:21:28 +01:00
|
|
|
rev = "v${version}";
|
2020-11-01 00:56:18 +00:00
|
|
|
sha256 = "1dpv2iyd48xd8yw9bmymjjrkhsgmpwvsl5b9zx3lpaaq59ypi9g9";
|
2020-05-01 22:21:28 +01:00
|
|
|
};
|
|
|
|
|
2020-11-01 00:56:18 +00:00
|
|
|
cargoSha256 = "1cwxpc3xkw673wiamr4v7clrzwxl8ma1vdr6bw0hixm37gxdxz7x";
|
2020-05-01 22:21:28 +01:00
|
|
|
|
2020-08-16 14:22:56 +01:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreFoundation libiconv Security ];
|
|
|
|
|
2020-05-01 22:21:28 +01:00
|
|
|
meta = with stdenv.lib; {
|
2020-10-11 06:55:05 +01:00
|
|
|
description = "A simple yet robust commandline random password generator";
|
2020-11-01 00:56:18 +00:00
|
|
|
homepage = "https://sr.ht/~cyplo/genpass/";
|
2020-05-01 22:21:28 +01:00
|
|
|
license = licenses.agpl3;
|
|
|
|
maintainers = with maintainers; [ cyplo ];
|
|
|
|
};
|
|
|
|
}
|