exiftool: add passthru.tests.version

This commit is contained in:
Anthony Roussel 2024-03-15 00:03:29 +01:00
parent 74194ca563
commit 0dfa686474
No known key found for this signature in database
GPG Key ID: 9DC4987B1A55E75E

View File

@ -1,9 +1,11 @@
{ lib
, stdenv
, buildPerlPackage
, exiftool
, fetchurl
, gitUpdater
, shortenPerlShebang
, testers
}:
buildPerlPackage rec {
@ -21,6 +23,11 @@ buildPerlPackage rec {
'';
passthru = {
tests.version = testers.testVersion {
inherit version;
command = "${lib.getExe exiftool} -ver";
package = exiftool;
};
updateScript = gitUpdater {
url = "https://github.com/exiftool/exiftool.git";
};