mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-30 16:53:40 +00:00
bottom: move to versionCheckHook
This commit is contained in:
parent
c2841d774b
commit
cf269ecc0a
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user