Unverified Commit 089b42ea authored by Austin Horstman's avatar Austin Horstman
Browse files

tabby: darwin sdk refactor

Use macos 15 since upstream CI is tied to macos-latest github action
runner.
parent 4cec5149
Loading
Loading
Loading
Loading
+6 −18
Original line number Diff line number Diff line
@@ -13,17 +13,15 @@

  llama-cpp,

  apple-sdk_15,
  autoAddDriverRunpath,
  cudaSupport ? config.cudaSupport,
  versionCheckHook,

  cudaSupport ? config.cudaSupport,
  rocmSupport ? config.rocmSupport,

  darwin,
  metalSupport ? stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64,

  # one of [ null "cpu" "rocm" "cuda" "metal" ];
  acceleration ? null,
  versionCheckHook,
}:

let
@@ -106,19 +104,9 @@ let
  # TODO(ghthor): some of this can be removed
  darwinBuildInputs =
    [ llamaccpPackage ]
    ++ optionals stdenv.hostPlatform.isDarwin (
      with darwin.apple_sdk.frameworks;
      [
        Foundation
        Accelerate
        CoreVideo
        CoreGraphics
      ]
      ++ optionals enableMetal [
        Metal
        MetalKit
      ]
    );
    ++ optionals stdenv.hostPlatform.isDarwin ([
      apple-sdk_15
    ]);

  cudaBuildInputs = [ llamaccpPackage ];
  rocmBuildInputs = [ llamaccpPackage ];