swayfx-unwrapped: add version test

This commit is contained in:
éclairevoyant 2024-04-29 15:03:27 -04:00
parent 32615dea49
commit 3596b1834e
No known key found for this signature in database
GPG Key ID: E3813AEAA02DB54B

View File

@ -26,6 +26,7 @@
wayland-scanner,
xcbutilwm,
wlroots,
testers,
# Used by the NixOS module:
isNixOS ? false,
enableXWayland ? true,
@ -118,6 +119,16 @@ stdenv.mkDerivation (finalAttrs: {
(mesonEnable "tray" finalAttrs.trayEnabled)
];
passthru = {
tests = {
version = testers.testVersion {
package = finalAttrs.finalPackage;
command = "sway --version";
version = "swayfx version ${finalAttrs.version}";
};
};
};
meta = {
description = "Sway, but with eye candy!";
homepage = "https://github.com/WillPower3309/swayfx";