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

56 lines
986 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-12-17 22:41:58 +01:00
version = "0.8.2";
2021-05-31 23:49:52 +02:00
src = fetchFromGitHub {
owner = "orhun";
repo = "gpg-tui";
rev = "v${version}";
2021-12-17 22:41:58 +01:00
hash = "sha256-jddkws4TXuW0AdLBEpS5RPk1a/mEkwYWMbYiLjt22LU=";
2021-05-31 23:49:52 +02:00
};
2021-12-17 22:41:58 +01:00
cargoHash = "sha256-bj77fMmpXeOqb1MzOPsEPQUh5AnZxBrapzt864V+IUU=";
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 ];
};
}