2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-11-01 00:56:18 +00:00
|
|
|
, fetchgit
|
2020-05-01 21:21:28 +00:00
|
|
|
, rustPlatform
|
2020-08-16 13:22:56 +00:00
|
|
|
, CoreFoundation
|
|
|
|
, libiconv
|
|
|
|
, Security
|
2020-05-01 21:21:28 +00:00
|
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "genpass";
|
2021-10-24 09:25:42 +00:00
|
|
|
version = "0.5.1";
|
2020-05-01 21:21:28 +00:00
|
|
|
|
2020-11-01 00:56:18 +00:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.sr.ht/~cyplo/genpass";
|
2020-05-01 21:21:28 +00:00
|
|
|
rev = "v${version}";
|
2021-10-24 09:25:42 +00:00
|
|
|
sha256 = "UyEgOlKtDyneRteN3jHA2BJlu5U1HFL8HA2MTQz5rns=";
|
2020-05-01 21:21:28 +00:00
|
|
|
};
|
|
|
|
|
2024-07-03 12:29:10 +00:00
|
|
|
cargoHash = "sha256-ls3tzZ+gtZQlObmbtwJDq6N/f5nY+Ps7RL5R/fR5Vgg=";
|
2020-05-01 21:21:28 +00:00
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreFoundation libiconv Security ];
|
2020-08-16 13:22:56 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "Simple yet robust commandline random password generator";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "genpass";
|
2020-11-01 00:56:18 +00:00
|
|
|
homepage = "https://sr.ht/~cyplo/genpass/";
|
2021-03-20 10:06:31 +00:00
|
|
|
license = licenses.agpl3Only;
|
2020-05-01 21:21:28 +00:00
|
|
|
maintainers = with maintainers; [ cyplo ];
|
|
|
|
};
|
|
|
|
}
|