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
|
2021-09-04 22:05:03 +02:00
|
|
|
, libgpg-error
|
2021-05-31 23:49:52 +02:00
|
|
|
, libxcb
|
2021-09-16 05:30:39 +02:00
|
|
|
, 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";
|
2022-02-19 05:52:55 +01:00
|
|
|
version = "0.8.3";
|
2021-05-31 23:49:52 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "orhun";
|
|
|
|
repo = "gpg-tui";
|
|
|
|
rev = "v${version}";
|
2022-02-19 05:52:55 +01:00
|
|
|
hash = "sha256-lqV09FEZAw1ir2cJr8ABhbgSoZoWnxhbxyA1HAufLQA=";
|
2021-05-31 23:49:52 +02:00
|
|
|
};
|
|
|
|
|
2022-02-19 05:52:55 +01:00
|
|
|
cargoHash = "sha256-RMF4/WJRcpHuXKMvDYAGaJxUazcpkQCpv//u5XOd9Dg=";
|
2021-05-31 23:49:52 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gpgme # for gpgme-config
|
2021-09-04 22:05:03 +02:00
|
|
|
libgpg-error # for gpg-error-config
|
2021-05-31 23:49:52 +02:00
|
|
|
python3
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gpgme
|
2021-09-04 22:05:03 +02:00
|
|
|
libgpg-error
|
2021-05-31 23:49:52 +02:00
|
|
|
libxcb
|
2021-09-16 05:30:39 +02:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|