codebook: Add versionCheckHook

This commit is contained in:
Jonathan Davies
2025-11-15 12:39:02 +00:00
parent b7281d85ea
commit 02aa12a29c
+7
View File
@@ -3,6 +3,7 @@
fetchFromGitHub,
nix-update-script,
rustPlatform,
versionCheckHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@@ -24,6 +25,12 @@ rustPlatform.buildRustPackage (finalAttrs: {
passthru.updateScript = nix-update-script { };
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
versionCheckProgramArg = "--version";
meta = {
description = "Unholy spellchecker for code";
homepage = "https://github.com/blopker/codebook";