diff options
author | Christoph Heiss <christoph@c8h4.io> | 2023-06-30 16:08:25 +0200 |
---|---|---|
committer | Christoph Heiss <christoph@c8h4.io> | 2023-06-30 16:08:25 +0200 |
commit | 80e58241b3fa9ff9de9945fb0eb36d836a2c41b0 (patch) | |
tree | f1f6075582931f1afcfd620393f1a194aac7e1ad /pkgs/applications/backup/proxmox-backup-client | |
parent | 5d511d1a1b792b2c239c16261ac1bc9ba5c5ea88 (diff) |
proxmox-backup-client: add passthru.tests.version
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
Diffstat (limited to 'pkgs/applications/backup/proxmox-backup-client')
-rw-r--r-- | pkgs/applications/backup/proxmox-backup-client/default.nix | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/pkgs/applications/backup/proxmox-backup-client/default.nix b/pkgs/applications/backup/proxmox-backup-client/default.nix index 0b77fbf2eca76..3c737f8044b00 100644 --- a/pkgs/applications/backup/proxmox-backup-client/default.nix +++ b/pkgs/applications/backup/proxmox-backup-client/default.nix @@ -1,6 +1,19 @@ -{ - lib, fetchgit, rustPlatform, pkg-config, openssl, fuse3, libuuid, - acl, libxcrypt, git, installShellFiles, sphinx, stdenv, fetchpatch +{ lib, + fetchgit, + rustPlatform, + pkg-config, + openssl, + fuse3, + libuuid, + acl, + libxcrypt, + git, + installShellFiles, + sphinx, + stdenv, + fetchpatch, + testers, + proxmox-backup-client, }: rustPlatform.buildRustPackage rec { @@ -92,6 +105,11 @@ rustPlatform.buildRustPackage rec { nativeBuildInputs = [ git pkg-config rustPlatform.bindgenHook installShellFiles sphinx ]; buildInputs = [ openssl fuse3 libuuid acl libxcrypt ]; + passthru.tests.version = testers.testVersion { + package = proxmox-backup-client; + command = "${pname} version"; + }; + meta = with lib; { description = "The command line client for Proxmox Backup Server"; homepage = "https://pbs.proxmox.com/docs/backup-client.html"; |