Skip to content

Commit

Permalink
bottom: move to versionCheckHook
Browse files Browse the repository at this point in the history
  • Loading branch information
gepbird committed Dec 11, 2024
1 parent c2841d7 commit 665b5ab
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pkgs/by-name/bo/bottom/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
installShellFiles,
stdenv,
apple-sdk_11,
bottom,
versionCheckHook,
nix-update-script,
testers,
}:

rustPlatform.buildRustPackage rec {
Expand Down Expand Up @@ -46,13 +45,16 @@ rustPlatform.buildRustPackage rec {
HOME=$(mktemp -d)
'';

doInstallCheck = true;
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgram = "btm";

BTM_GENERATE = true;

passthru = {
updateScript = nix-update-script { };
tests.version = testers.testVersion {
package = bottom;
};
};

meta = {
Expand Down

0 comments on commit 665b5ab

Please sign in to comment.