twitch-tui: fix darwin build

This commit is contained in:
Stanisław Pitucha 2022-10-18 00:51:36 +11:00
parent ab6176ac5b
commit 7510407930
2 changed files with 12 additions and 3 deletions

View File

@ -1,4 +1,11 @@
{ lib, fetchFromGitHub, rustPlatform, pkg-config, openssl }:
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, pkg-config
, openssl
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "twitch-tui";
@ -12,7 +19,7 @@ rustPlatform.buildRustPackage rec {
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ];
cargoHash = "sha256-zUeI01EyXsuoKzHbpVu3jyA3H2aBk6wMY+GW3h3v8vc=";

View File

@ -5333,7 +5333,9 @@ with pkgs;
keyd = callPackage ../tools/inputmethods/keyd { };
twitch-tui = callPackage ../applications/networking/instant-messengers/twitch-tui { };
twitch-tui = callPackage ../applications/networking/instant-messengers/twitch-tui {
inherit (darwin.apple_sdk.frameworks) Security;
};
gebaar-libinput = callPackage ../tools/inputmethods/gebaar-libinput { stdenv = gcc10StdenvCompat; };