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

54 lines
955 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
, libgpgerror
, libxcb
, 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";
2021-08-08 14:52:39 +02:00
version = "0.7.4";
2021-05-31 23:49:52 +02:00
src = fetchFromGitHub {
owner = "orhun";
repo = "gpg-tui";
rev = "v${version}";
2021-08-08 14:52:39 +02:00
sha256 = "sha256-PJLiP8o4HMkaHMrsnObpUdGtKLxIuXZhxva34U26i40=";
2021-05-31 23:49:52 +02:00
};
2021-08-08 14:52:39 +02:00
cargoSha256 = "sha256-6fHMchoJO5Tss6kFTulDmI4aXS3YF5k6RqEWQbh5mNc=";
2021-05-31 23:49:52 +02:00
nativeBuildInputs = [
gpgme # for gpgme-config
libgpgerror # for gpg-error-config
python3
];
buildInputs = [
gpgme
libgpgerror
libxcb
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 ];
};
}