kord: fix darwin build

This commit is contained in:
Mario Rodas
2023-06-29 04:20:00 +00:00
parent 4f84d7c216
commit ed381394f2
+7 -2
View File
@@ -1,4 +1,6 @@
{ lib
, stdenv
, darwin
, fetchFromGitHub
, rustPlatform
, pkg-config
@@ -26,8 +28,11 @@ rustPlatform.buildRustPackage rec {
};
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ alsa-lib ];
nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ]
++ lib.optionals stdenv.isDarwin [ rustPlatform.bindgenHook ];
buildInputs = lib.optionals stdenv.isLinux [ alsa-lib ]
++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.AudioUnit ];
meta = with lib; {
description = "A music theory binary and library for Rust";