mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-06 20:23:39 +00:00
bottom: move to versionCheckHook
This commit is contained in:
parent
c2841d774b
commit
cf269ecc0a
@ -6,9 +6,8 @@
|
|||||||
installShellFiles,
|
installShellFiles,
|
||||||
stdenv,
|
stdenv,
|
||||||
apple-sdk_11,
|
apple-sdk_11,
|
||||||
bottom,
|
versionCheckHook,
|
||||||
nix-update-script,
|
nix-update-script,
|
||||||
testers,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
@ -46,13 +45,16 @@ rustPlatform.buildRustPackage rec {
|
|||||||
HOME=$(mktemp -d)
|
HOME=$(mktemp -d)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
doInstallCheck = true;
|
||||||
|
nativeInstallCheckInputs = [
|
||||||
|
versionCheckHook
|
||||||
|
];
|
||||||
|
versionCheckProgram = "${placeholder "out"}/bin/btm";
|
||||||
|
|
||||||
BTM_GENERATE = true;
|
BTM_GENERATE = true;
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
updateScript = nix-update-script { };
|
updateScript = nix-update-script { };
|
||||||
tests.version = testers.testVersion {
|
|
||||||
package = bottom;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
Reference in New Issue
Block a user