2021-06-01 10:57:12 +00:00
|
|
|
{ lib
|
2021-07-03 03:11:41 +00:00
|
|
|
, stdenv
|
2021-06-01 10:57:12 +00:00
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gpgme
|
2021-10-08 15:17:17 +00:00
|
|
|
, libgpg-error
|
2021-06-01 10:57:12 +00:00
|
|
|
, libxcb
|
2021-09-18 10:52:07 +00:00
|
|
|
, libxkbcommon
|
2021-06-01 10:57:12 +00:00
|
|
|
, python3
|
2021-07-03 03:11:41 +00:00
|
|
|
, AppKit
|
|
|
|
, Foundation
|
|
|
|
, libiconv
|
|
|
|
, libobjc
|
|
|
|
, libresolv
|
2021-06-01 10:57:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "gpg-tui";
|
2021-12-21 02:18:32 +00:00
|
|
|
version = "0.8.2";
|
2021-06-01 10:57:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "orhun";
|
|
|
|
repo = "gpg-tui";
|
|
|
|
rev = "v${version}";
|
2021-12-21 02:18:32 +00:00
|
|
|
hash = "sha256-jddkws4TXuW0AdLBEpS5RPk1a/mEkwYWMbYiLjt22LU=";
|
2021-06-01 10:57:12 +00:00
|
|
|
};
|
|
|
|
|
2021-12-21 02:18:32 +00:00
|
|
|
cargoHash = "sha256-bj77fMmpXeOqb1MzOPsEPQUh5AnZxBrapzt864V+IUU=";
|
2021-06-01 10:57:12 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gpgme # for gpgme-config
|
2021-10-08 15:17:17 +00:00
|
|
|
libgpg-error # for gpg-error-config
|
2021-06-01 10:57:12 +00:00
|
|
|
python3
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gpgme
|
2021-10-08 15:17:17 +00:00
|
|
|
libgpg-error
|
2021-06-01 10:57:12 +00:00
|
|
|
libxcb
|
2021-09-18 10:52:07 +00:00
|
|
|
libxkbcommon
|
2021-07-03 03:11:41 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
AppKit
|
|
|
|
Foundation
|
|
|
|
libiconv
|
|
|
|
libobjc
|
|
|
|
libresolv
|
2021-06-01 10:57:12 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Terminal user interface for GnuPG";
|
|
|
|
homepage = "https://github.com/orhun/gpg-tui";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|