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
|
2023-02-09 11:40:11 +00:00
|
|
|
, pkg-config
|
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";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.10.0";
|
2021-06-01 10:57:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "orhun";
|
|
|
|
repo = "gpg-tui";
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-zTFWIIqIDMI77lg2CB1ug+GeKPVIT1OQ1p80x6tLgGg=";
|
2021-06-01 10:57:12 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
cargoHash = "sha256-5qLrmU/SfUfiQOOpECTEn8K142STnbhqE3XbJFxKPZg=";
|
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
|
2023-02-09 11:40:11 +00:00
|
|
|
pkg-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;
|
2023-11-16 04:20:00 +00:00
|
|
|
maintainers = with maintainers; [ dotlambda matthiasbeyer ];
|
2021-06-01 10:57:12 +00:00
|
|
|
};
|
|
|
|
}
|