espanso: add version test

This commit is contained in:
Bob van der Linden 2023-05-10 15:25:35 +02:00
parent 5762a20a25
commit 150be95855
No known key found for this signature in database
GPG key ID: EEBE8E3EC4A31364

View file

@ -23,6 +23,8 @@
, IOKit
, waylandSupport ? false
, x11Support ? stdenv.isLinux
, testers
, espanso
}:
# espanso does not support building with both X11 and Wayland support at the same time
assert stdenv.isLinux -> x11Support != waylandSupport;
@ -104,6 +106,10 @@ rustPlatform.buildRustPackage rec {
)}
'';
passthru.tests.version = testers.testVersion {
package = espanso;
};
meta = with lib; {
description = "Cross-platform Text Expander written in Rust";
homepage = "https://espanso.org";