From cf269ecc0a04709d02ca6d568d6228feebb9ebd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gutyina=20Gerg=C5=91?= Date: Wed, 11 Dec 2024 09:41:56 +0100 Subject: [PATCH] bottom: move to versionCheckHook --- pkgs/by-name/bo/bottom/package.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/bo/bottom/package.nix b/pkgs/by-name/bo/bottom/package.nix index 3fc07d6b2411..33b91c6db5d2 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 = {