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";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "0.9.1";
|
2021-06-01 10:57:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "orhun";
|
|
|
|
repo = "gpg-tui";
|
|
|
|
rev = "v${version}";
|
2022-08-21 13:32:41 +00:00
|
|
|
hash = "sha256-eUUHH6bPfYjkHo7C7GWzewTpT8je7TQK9M8mTM5v59s=";
|
2021-06-01 10:57:12 +00:00
|
|
|
};
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
cargoHash = "sha256-GtSvDfG9lRUirm4d6PSaOBLTHZJT2PH0Sx/9GVquX5M=";
|
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";
|
2022-06-16 17:23:12 +00:00
|
|
|
changelog = "https://github.com/orhun/gpg-tui/blob/${src.rev}/CHANGELOG.md";
|
2021-06-01 10:57:12 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|