uiua: fix darwin build
This commit is contained in:
parent
c79b5b0deb
commit
811be75bc5
1 changed files with 8 additions and 2 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue