diff options
author | TomaSajt <62384384+TomaSajt@users.noreply.github.com> | 2024-04-29 12:08:06 +0200 |
---|---|---|
committer | TomaSajt <62384384+TomaSajt@users.noreply.github.com> | 2024-04-29 12:08:06 +0200 |
commit | 811be75bc5561e6c6553201612a121ddc1568134 (patch) | |
tree | 1b2d0f90dcd638e2454e6e331c15022c6d372587 | |
parent | c79b5b0deb6ed9ba4529672bb048f9132c893206 (diff) |
uiua: fix darwin build
-rw-r--r-- | pkgs/by-name/ui/uiua/package.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/by-name/ui/uiua/package.nix b/pkgs/by-name/ui/uiua/package.nix index 4bb4098e8d2bb..e6f518fc09583 100644 --- a/pkgs/by-name/ui/uiua/package.nix +++ b/pkgs/by-name/ui/uiua/package.nix @@ -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"; |