nixpkgs/pkgs/tools/security/gpg-tui/default.nix

56 lines
990 B
Nix
Raw Normal View History

2021-05-31 23:49:52 +02:00
{ lib
2021-06-29 10:53:01 +02:00
, stdenv
2021-05-31 23:49:52 +02:00
, rustPlatform
, fetchFromGitHub
, gpgme
, libgpg-error
2021-05-31 23:49:52 +02:00
, libxcb
, libxkbcommon
2021-05-31 23:49:52 +02:00
, python3
2021-06-29 10:53:01 +02:00
, AppKit
, Foundation
, libiconv
, libobjc
, libresolv
2021-05-31 23:49:52 +02:00
}:
rustPlatform.buildRustPackage rec {
pname = "gpg-tui";
2021-10-29 22:52:40 +02:00
version = "0.8.1";
2021-05-31 23:49:52 +02:00
src = fetchFromGitHub {
owner = "orhun";
repo = "gpg-tui";
rev = "v${version}";
2021-10-29 22:52:40 +02:00
sha256 = "sha256-2fTJHcJJzQIAyxLnWdoyR77tA9p/3s3UescypGwKfc0=";
2021-05-31 23:49:52 +02:00
};
2021-10-29 22:52:40 +02:00
cargoSha256 = "sha256-8dWMJZiWy0cO0CGAFEmtGYZ8bVK1ZR7qBkjKn6rLC+k=";
2021-05-31 23:49:52 +02:00
nativeBuildInputs = [
gpgme # for gpgme-config
libgpg-error # for gpg-error-config
2021-05-31 23:49:52 +02:00
python3
];
buildInputs = [
gpgme
libgpg-error
2021-05-31 23:49:52 +02:00
libxcb
libxkbcommon
2021-06-29 10:53:01 +02:00
] ++ lib.optionals stdenv.isDarwin [
AppKit
Foundation
libiconv
libobjc
libresolv
2021-05-31 23:49:52 +02:00
];
meta = with lib; {
description = "Terminal user interface for GnuPG";
homepage = "https://github.com/orhun/gpg-tui";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}