Skip to content

Commit

Permalink
uiua: fix darwin build
Browse files Browse the repository at this point in the history
  • Loading branch information
TomaSajt committed Apr 29, 2024
1 parent c79b5b0 commit 811be75
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pkgs/by-name/ui/uiua/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
uiua,
}:

let
inherit (darwin.apple_sdk.frameworks) AppKit AudioUnit CoreServices;
in
rustPlatform.buildRustPackage rec {
pname = "uiua";
version = "0.10.3";
Expand All @@ -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";
Expand Down

0 comments on commit 811be75

Please sign in to comment.