browserpass: add testVersion

This commit is contained in:
Kirill Radzikhovskyy 2023-06-08 06:38:43 +10:00
parent 282edfca5b
commit 61c9837425

View file

@ -5,6 +5,8 @@
, gnupg
, makeWrapper
, autoPatchelfHook
, testers
, browserpass
}:
buildGoModule rec {
@ -56,6 +58,11 @@ buildGoModule rec {
ln -s $out/lib/browserpass/hosts/firefox/*.json $out/lib/mozilla/native-messaging-hosts
'';
passthru.tests.version = testers.testVersion {
package = browserpass;
command = "browserpass --version";
};
meta = with lib; {
description = "Browserpass native client app";
homepage = "https://github.com/browserpass/browserpass-native";