gpg-tui: fix build on Darwin

This commit is contained in:
Robert Schütz 2021-06-29 10:53:01 +02:00
parent 775e849b0c
commit 64f45f1cf6
2 changed files with 16 additions and 1 deletions

View File

@ -1,10 +1,16 @@
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, gpgme
, libgpgerror
, libxcb
, python3
, AppKit
, Foundation
, libiconv
, libobjc
, libresolv
}:
rustPlatform.buildRustPackage rec {
@ -30,6 +36,12 @@ rustPlatform.buildRustPackage rec {
gpgme
libgpgerror
libxcb
] ++ lib.optionals stdenv.isDarwin [
AppKit
Foundation
libiconv
libobjc
libresolv
];
meta = with lib; {

View File

@ -2786,7 +2786,10 @@ in
Accelerate CoreGraphics CoreVideo;
};
gpg-tui = callPackage ../tools/security/gpg-tui { };
gpg-tui = callPackage ../tools/security/gpg-tui {
inherit (darwin.apple_sdk.frameworks) AppKit Foundation;
inherit (darwin) libobjc libresolv;
};
goa = callPackage ../development/tools/goa { };