proxmox-backup-client: switch to versionCheckHook

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss
2024-12-24 23:00:24 +01:00
parent 27c0af4774
commit 422e761b67
@@ -16,8 +16,7 @@
systemd,
stdenv,
fetchpatch,
testers,
proxmox-backup-client,
versionCheckHook,
}:
let
@@ -170,10 +169,9 @@ rustPlatform.buildRustPackage {
systemd.dev
];
passthru.tests.version = testers.testVersion {
package = proxmox-backup-client;
command = "${pname} version";
};
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = [ "version" ];
meta = with lib; {
description = "Command line client for Proxmox Backup Server";