Commit 61c98374 authored by Kirill Radzikhovskyy's avatar Kirill Radzikhovskyy
Browse files

browserpass: add testVersion

parent 282edfca
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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";