uiua: fix darwin build

This commit is contained in:
TomaSajt 2024-04-29 12:08:06 +02:00
parent c79b5b0deb
commit 811be75bc5
No known key found for this signature in database
GPG key ID: F011163C050122A1

View file

@ -13,6 +13,9 @@
uiua,
}:
let
inherit (darwin.apple_sdk.frameworks) AppKit AudioUnit CoreServices;
in
rustPlatform.buildRustPackage rec {
pname = "uiua";
version = "0.10.3";
@ -31,8 +34,11 @@ rustPlatform.buildRustPackage rec {
++ lib.optionals audioSupport [ pkg-config ];
buildInputs =
lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.CoreServices ]
++ lib.optionals (audioSupport && stdenv.isDarwin) [ darwin.apple_sdk.frameworks.AudioUnit ]
lib.optionals stdenv.isDarwin [
AppKit
CoreServices
]
++ lib.optionals (audioSupport && stdenv.isDarwin) [ AudioUnit ]
++ lib.optionals (audioSupport && stdenv.isLinux) [ alsa-lib ];
buildFeatures = lib.optional audioSupport "audio";