Unverified Commit 02aa12a2 authored by Jonathan Davies's avatar Jonathan Davies
Browse files

codebook: Add versionCheckHook

parent b7281d85
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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";