2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2020-11-01 01:56:18 +01:00
|
|
|
, fetchgit
|
2020-05-01 23:21:28 +02:00
|
|
|
, 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";
|
2021-03-20 11:06:31 +01:00
|
|
|
version = "0.4.12";
|
2020-05-01 23:21:28 +02:00
|
|
|
|
2020-11-01 01:56:18 +01:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.sr.ht/~cyplo/genpass";
|
2020-05-01 23:21:28 +02:00
|
|
|
rev = "v${version}";
|
2021-03-20 11:06:31 +01:00
|
|
|
sha256 = "154kprbqc59f06ciz60il4ax299zapwa0hz8vjn25rl4gr5gzn4l";
|
2020-05-01 23:21:28 +02:00
|
|
|
};
|
|
|
|
|
2021-05-07 13:00:49 +02:00
|
|
|
cargoSha256 = "1b9jqkg11d0ih46km063inqqjwfy1nrwb2xb3dagg3hi8hahpqpb";
|
2020-05-01 23:21:28 +02:00
|
|
|
|
2021-01-15 10:19:50 +01:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreFoundation libiconv Security ];
|
2020-08-16 15:22:56 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-10-11 07:55:05 +02:00
|
|
|
description = "A simple yet robust commandline random password generator";
|
2020-11-01 01:56:18 +01:00
|
|
|
homepage = "https://sr.ht/~cyplo/genpass/";
|
2021-03-20 11:06:31 +01:00
|
|
|
license = licenses.agpl3Only;
|
2020-05-01 23:21:28 +02:00
|
|
|
maintainers = with maintainers; [ cyplo ];
|
|
|
|
};
|
|
|
|
}
|