From fad5cb39b7f6dca67abe7bd8bbb43b4538d0d25b Mon Sep 17 00:00:00 2001 From: Jonathan Davies Date: Tue, 2 Dec 2025 21:46:49 +0000 Subject: [PATCH] bat: Add versionCheckHook --- pkgs/by-name/ba/bat/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/ba/bat/package.nix b/pkgs/by-name/ba/bat/package.nix index fa4d14282515..013e9b85b0c9 100644 --- a/pkgs/by-name/ba/bat/package.nix +++ b/pkgs/by-name/ba/bat/package.nix @@ -7,6 +7,7 @@ installShellFiles, makeWrapper, zlib, + versionCheckHook, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -62,6 +63,9 @@ rustPlatform.buildRustPackage (finalAttrs: { "--skip=file_with_invalid_utf8_filename" ]; + nativeInstallCheckInputs = [ + versionCheckHook + ]; doInstallCheck = true; installCheckPhase = '' runHook preInstallCheck