diff --git a/pkgs/by-name/bo/bottom/package.nix b/pkgs/by-name/bo/bottom/package.nix index 3fc07d6b24118..33b91c6db5d23 100644 --- a/pkgs/by-name/bo/bottom/package.nix +++ b/pkgs/by-name/bo/bottom/package.nix @@ -6,9 +6,8 @@ installShellFiles, stdenv, apple-sdk_11, - bottom, + versionCheckHook, nix-update-script, - testers, }: rustPlatform.buildRustPackage rec { @@ -46,13 +45,16 @@ rustPlatform.buildRustPackage rec { HOME=$(mktemp -d) ''; + doInstallCheck = true; + nativeInstallCheckInputs = [ + versionCheckHook + ]; + versionCheckProgram = "${placeholder "out"}/bin/btm"; + BTM_GENERATE = true; passthru = { updateScript = nix-update-script { }; - tests.version = testers.testVersion { - package = bottom; - }; }; meta = {