From 5745d47afd8bbf8a95d192307cb5d9d896c96fba Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Mon, 21 Oct 2024 14:53:52 -0500 Subject: [PATCH] tabby: versionCheckHook --- pkgs/by-name/ta/tabby/package.nix | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/ta/tabby/package.nix b/pkgs/by-name/ta/tabby/package.nix index 596fa1151ca7..c7017bf45646 100644 --- a/pkgs/by-name/ta/tabby/package.nix +++ b/pkgs/by-name/ta/tabby/package.nix @@ -24,6 +24,9 @@ # one of [ null "cpu" "rocm" "cuda" "metal" ]; acceleration ? null, cmake, + testers, + tabby, + versionCheckHook, }: let @@ -164,6 +167,10 @@ rustPlatform.buildRustPackage { "cuda" ]; + nativeInstallCheckInputs = [ + versionCheckHook + ]; + nativeBuildInputs = [ cmake @@ -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; {