diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/security/gpg-tui/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/security/gpg-tui/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/security/gpg-tui/default.nix b/nixpkgs/pkgs/tools/security/gpg-tui/default.nix new file mode 100644 index 000000000000..8b45a675b1fa --- /dev/null +++ b/nixpkgs/pkgs/tools/security/gpg-tui/default.nix @@ -0,0 +1,41 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, gpgme +, libgpgerror +, libxcb +, python3 +}: + +rustPlatform.buildRustPackage rec { + pname = "gpg-tui"; + version = "0.4.0"; + + src = fetchFromGitHub { + owner = "orhun"; + repo = "gpg-tui"; + rev = "v${version}"; + sha256 = "sha256-5noaBfOpUck8+FQQDohKfThN3jJ9ogvZ8iMdySlwENE="; + }; + + cargoSha256 = "sha256-OMbyoAVKnnLbFSO7gqxjBXmIjJg4K2ioE0ClYu9UyW4="; + + nativeBuildInputs = [ + gpgme # for gpgme-config + libgpgerror # for gpg-error-config + python3 + ]; + + buildInputs = [ + gpgme + libgpgerror + libxcb + ]; + + meta = with lib; { + description = "Terminal user interface for GnuPG"; + homepage = "https://github.com/orhun/gpg-tui"; + license = licenses.mit; + maintainers = with maintainers; [ dotlambda ]; + }; +} |