mattermost-desktop: add a simple package test

This commit is contained in:
Olli Helenius
2025-01-12 14:01:07 +02:00
parent 4a49f96c42
commit ae2526c5c4
@@ -4,6 +4,8 @@
fetchurl,
electron,
makeWrapper,
testers,
mattermost-desktop,
}:
let
@@ -61,6 +63,14 @@ stdenv.mkDerivation {
runHook postInstall
'';
passthru = {
tests.version = testers.testVersion {
package = mattermost-desktop;
# Invoking with `--version` insists on being able to write to a log file.
command = "env HOME=/tmp ${mattermost-desktop.meta.mainProgram} --version";
};
};
meta = with lib; {
description = "Mattermost Desktop client";
mainProgram = "mattermost-desktop";