Unverified Commit 0182045c authored by Adam C. Stephens's avatar Adam C. Stephens Committed by GitHub
Browse files

Merge pull request #307441 from adamcstephens/tabby

tabby: 0.8.3 -> 0.10.0
parents a94aef18 a064513a
Loading
Loading
Loading
Loading
+964 −165

File changed.

Preview size limit exceeded, changes collapsed.

+7 −3
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
, lib
, rustPlatform
, fetchFromGitHub
, nix-update-script
, stdenv

, git
@@ -31,7 +32,7 @@ let
  # https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/ollama/default.nix

  pname = "tabby";
  version = "0.8.3";
  version = "0.10.0";


  availableAccelerations = flatten [
@@ -77,7 +78,7 @@ let
  # to use a specific device type as it is relying on llama-cpp only being
  # built to use one type of device.
  #
  # See: https://github.com/TabbyML/tabby/blob/v0.8.3/crates/llama-cpp-bindings/include/engine.h#L20
  # See: https://github.com/TabbyML/tabby/blob/v0.10.0/crates/llama-cpp-bindings/include/engine.h#L20
  #
  llamaccpPackage = llama-cpp.override {
    rocmSupport = enableRocm;
@@ -107,7 +108,7 @@ rustPlatform.buildRustPackage {
    owner = "TabbyML";
    repo = "tabby";
    rev = "v${version}";
    hash = "sha256-+5Q5XKfh7+g24y2hBqJC/jNEoRytDdcRdn838xc7c8w=";
    hash = "sha256-Oi4KY2H6/dSBydjvPmycdinXUWCdbbhV32wKRvjjnuo=";
    fetchSubmodules = true;
  };

@@ -116,6 +117,7 @@ rustPlatform.buildRustPackage {
    outputHashes = {
      "tree-sitter-c-0.20.6" = "sha256-Etl4s29YSOxiqPo4Z49N6zIYqNpIsdk/Qd0jR8jdvW4=";
      "tree-sitter-cpp-0.20.3" = "sha256-UrQ48CoUMSHmlHzOMu22c9N4hxJtHL2ZYRabYjf5byA=";
      "tree-sitter-solidity-0.0.3" = "sha256-b+LthCf+g19sjKeNgXZmUV0RNi94O3u0WmXfgKRpaE0=";
    };
  };

@@ -152,6 +154,8 @@ rustPlatform.buildRustPackage {
  # file cannot create directory: /var/empty/local/lib64/cmake/Llama
  doCheck = false;

  passthru.updateScript = nix-update-script { };

  meta = with lib; {
    homepage = "https://github.com/TabbyML/tabby";
    changelog = "https://github.com/TabbyML/tabby/releases/tag/v${version}";