tio: add IOKit to enable custom baudrates on darwin (#289508)

This commit is contained in:
Kamil Zaripov 2024-03-09 15:14:13 +02:00 committed by GitHub
parent 6074e65d28
commit 0142578e3c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, inih, bash-completion }:
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, inih, bash-completion, darwin }:
stdenv.mkDerivation rec {
pname = "tio";
@ -13,7 +13,8 @@ stdenv.mkDerivation rec {
strictDeps = true;
buildInputs = [ inih ];
buildInputs = [ inih ]
++ lib.optionals (stdenv.hostPlatform.isDarwin) [ darwin.apple_sdk.frameworks.IOKit ];
nativeBuildInputs = [ meson ninja pkg-config bash-completion ];