about summary refs log tree commit diff
path: root/pkgs/applications/backup/proxmox-backup-client
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/backup/proxmox-backup-client')
-rw-r--r--pkgs/applications/backup/proxmox-backup-client/default.nix24
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";