Unverified Commit cf269ecc authored by Gutyina Gergő's avatar Gutyina Gergő
Browse files

bottom: move to versionCheckHook

parent c2841d77
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -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 = {