1{ lib, stdenv
2, fetchgit
3, rustPlatform
4, CoreFoundation
5, libiconv
6, Security
7}:
8rustPlatform.buildRustPackage rec {
9 pname = "genpass";
10 version = "0.4.12";
11
12 src = fetchgit {
13 url = "https://git.sr.ht/~cyplo/genpass";
14 rev = "v${version}";
15 sha256 = "154kprbqc59f06ciz60il4ax299zapwa0hz8vjn25rl4gr5gzn4l";
16 };
17
18 cargoSha256 = "1b9jqkg11d0ih46km063inqqjwfy1nrwb2xb3dagg3hi8hahpqpb";
19
20 buildInputs = lib.optionals stdenv.isDarwin [ CoreFoundation libiconv Security ];
21
22 meta = with lib; {
23 description = "A simple yet robust commandline random password generator";
24 homepage = "https://sr.ht/~cyplo/genpass/";
25 license = licenses.agpl3Only;
26 maintainers = with maintainers; [ cyplo ];
27 };
28}