Skip to content

Commit

Permalink
tabby: versionCheckHook
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Oct 21, 2024
1 parent dc7ccb2 commit 5745d47
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions pkgs/by-name/ta/tabby/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
# one of [ null "cpu" "rocm" "cuda" "metal" ];
acceleration ? null,
cmake,
testers,
tabby,
versionCheckHook,
}:

let
Expand Down Expand Up @@ -164,6 +167,10 @@ rustPlatform.buildRustPackage {
"cuda"
];

nativeInstallCheckInputs = [
versionCheckHook
];

nativeBuildInputs =
[
cmake
Expand All @@ -190,11 +197,13 @@ rustPlatform.buildRustPackage {
# file cannot create directory: /var/empty/local/lib64/cmake/Llama
doCheck = false;

passthru.updateScript = nix-update-script {
extraArgs = [
"--version-regex"
"^v([0-9.]+)$"
];
passthru = {
updateScript = nix-update-script {
extraArgs = [
"--version-regex"
"^v([0-9.]+)$"
];
};
};

meta = with lib; {
Expand Down

0 comments on commit 5745d47

Please sign in to comment.