nixpkgs/pkgs/tools/security/gpg-tui/default.nix

56 lines
986 B
Nix
Raw Normal View History

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