20 rustPlatform.buildRustPackage rec {
24 src = fetchFromGitHub {
28 hash = "sha256-aHmLcWiDy5GMbcKi285tfBggNmGkpVAoZMm4dt8LKak=";
31 cargoHash = "sha256-rtBvo2nX4A6K/TBl6xhW8huLXdR6xDUhzMB3KRXRYMs=";
34 gpgme # for gpgme-config
35 libgpg-error # for gpg-error-config
45 ++ lib.optionals x11Support [
49 ++ lib.optionals stdenv.hostPlatform.isDarwin [
58 description = "Terminal user interface for GnuPG";
59 homepage = "https://github.com/orhun/gpg-tui";
60 changelog = "https://github.com/orhun/gpg-tui/blob/${src.rev}/CHANGELOG.md";
61 license = licenses.mit;
62 maintainers = with maintainers; [
66 mainProgram = "gpg-tui";