Commit 8cca925a authored by Andrew Marshall's avatar Andrew Marshall
Browse files

bitwarden-cli: Add updateScript

parent 0cf866ff
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@
, fetchFromGitHub
, python3
, cctools
, nix-update-script
, nixosTests
, xcbuild
}:
@@ -58,9 +59,14 @@ buildNpmPackage rec {

  npmFlags = [ "--legacy-peer-deps" ];

  passthru.tests = {
  passthru = {
    tests = {
      vaultwarden = nixosTests.vaultwarden.sqlite;
    };
    updateScript = nix-update-script {
      extraArgs = [ "--commit" "--version=stable" "--version-regex=^cli-v(.*)$" ];
    };
  };

  meta = with lib; {
    changelog = "https://github.com/bitwarden/clients/releases/tag/${src.rev}";