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
|
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
|
2024-02-07 01:22:34 +00:00
|
|
|
, x11Support ? true, libxcb, libxkbcommon
|
2021-06-01 10:57:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "gpg-tui";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.11.0";
|
2021-06-01 10:57:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "orhun";
|
|
|
|
repo = "gpg-tui";
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-aHmLcWiDy5GMbcKi285tfBggNmGkpVAoZMm4dt8LKak=";
|
2021-06-01 10:57:12 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
cargoHash = "sha256-rtBvo2nX4A6K/TBl6xhW8huLXdR6xDUhzMB3KRXRYMs=";
|
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
|
2024-02-07 01:22:34 +00:00
|
|
|
] ++ lib.optionals x11Support [
|
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 ];
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gpg-tui";
|
2021-06-01 10:57:12 +00:00
|
|
|
};
|
|
|
|
}
|