From 469d56aedd90ae57d46b289e7250be122b51f46c Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Thu, 23 Nov 2023 13:11:19 +0100 Subject: [PATCH] photofield: add passthru.tests.version --- pkgs/servers/photofield/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/servers/photofield/default.nix b/pkgs/servers/photofield/default.nix index 2ea4738d3e5a..da28c695db16 100644 --- a/pkgs/servers/photofield/default.nix +++ b/pkgs/servers/photofield/default.nix @@ -5,6 +5,8 @@ , makeWrapper , exiftool , ffmpeg +, testers +, photofield }: let @@ -61,6 +63,11 @@ buildGoModule rec { --prefix PATH : "${lib.makeBinPath [exiftool ffmpeg]}" ''; + passthru.tests.version = testers.testVersion { + package = photofield; + command = "photofield -version"; + }; + meta = with lib; { description = "Experimental fast photo viewer"; homepage = "https://github.com/SmilyOrg/photofield";