From 0cf866ffd8a07f12accaf6767e57553f89342cf3 Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Thu, 5 Sep 2024 15:01:45 -0400 Subject: [PATCH 1/4] bitwarden-desktop: Add updateScript --- pkgs/by-name/bi/bitwarden-desktop/package.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/bi/bitwarden-desktop/package.nix b/pkgs/by-name/bi/bitwarden-desktop/package.nix index e34bd5ea696f..b0d400614ae1 100644 --- a/pkgs/by-name/bi/bitwarden-desktop/package.nix +++ b/pkgs/by-name/bi/bitwarden-desktop/package.nix @@ -13,6 +13,7 @@ , makeDesktopItem , makeWrapper , napi-rs-cli +, nix-update-script , nodejs_20 , patchutils_0_4_2 , pkg-config @@ -195,6 +196,12 @@ in buildNpmPackage rec { }) ]; + passthru = { + updateScript = nix-update-script { + extraArgs = [ "--commit" "--version=stable" "--version-regex=^desktop-v(.*)$" ]; + }; + }; + meta = { changelog = "https://github.com/bitwarden/clients/releases/tag/${src.rev}"; inherit description; From 8cca925a466d271f3cbbf881b34f0ae362196f4b Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Thu, 5 Sep 2024 15:01:23 -0400 Subject: [PATCH 2/4] bitwarden-cli: Add updateScript --- pkgs/by-name/bi/bitwarden-cli/package.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/bi/bitwarden-cli/package.nix b/pkgs/by-name/bi/bitwarden-cli/package.nix index 6f3187cddb27..25b7afe6ec4f 100644 --- a/pkgs/by-name/bi/bitwarden-cli/package.nix +++ b/pkgs/by-name/bi/bitwarden-cli/package.nix @@ -5,6 +5,7 @@ , fetchFromGitHub , python3 , cctools +, nix-update-script , nixosTests , xcbuild }: @@ -58,8 +59,13 @@ buildNpmPackage rec { npmFlags = [ "--legacy-peer-deps" ]; - passthru.tests = { - vaultwarden = nixosTests.vaultwarden.sqlite; + passthru = { + tests = { + vaultwarden = nixosTests.vaultwarden.sqlite; + }; + updateScript = nix-update-script { + extraArgs = [ "--commit" "--version=stable" "--version-regex=^cli-v(.*)$" ]; + }; }; meta = with lib; { From 5a917406275ee76a0ccdd9f598a6eed57d7f5cff Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Thu, 5 Sep 2024 19:08:38 +0000 Subject: [PATCH 3/4] bitwarden-desktop: 2024.8.1 -> 2024.8.2 Diff: https://github.com/bitwarden/clients/compare/desktop-v2024.8.1...desktop-v2024.8.2 Changelog: https://github.com/bitwarden/clients/releases/tag/desktop-v2024.8.2 --- pkgs/by-name/bi/bitwarden-desktop/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/bi/bitwarden-desktop/package.nix b/pkgs/by-name/bi/bitwarden-desktop/package.nix index b0d400614ae1..104abfb85505 100644 --- a/pkgs/by-name/bi/bitwarden-desktop/package.nix +++ b/pkgs/by-name/bi/bitwarden-desktop/package.nix @@ -29,13 +29,13 @@ let electron = electron_31; in buildNpmPackage rec { pname = "bitwarden-desktop"; - version = "2024.8.1"; + version = "2024.8.2"; src = fetchFromGitHub { owner = "bitwarden"; repo = "clients"; rev = "desktop-v${version}"; - hash = "sha256-FBNqgPjWSY8SCIGyKpoOl7I3pWQxDbWiFtcPZScDE4A="; + hash = "sha256-KATT4W2pP7VTcoHeshGx5VrBwlg3UqzKPcRY0Rzo7II="; }; patches = [ @@ -52,7 +52,7 @@ in buildNpmPackage rec { makeCacheWritable = true; npmFlags = [ "--engine-strict" "--legacy-peer-deps" ]; npmWorkspace = "apps/desktop"; - npmDepsHash = "sha256-8cxhor90GqgO34AD8Jhd3N7PCnBnbhg8h7agVq0i3jk="; + npmDepsHash = "sha256-SnrK26QaxHYKX0532rGBASjx9PwxKSsVFRzZ3Cs2GPk="; cargoDeps = rustPlatform.fetchCargoTarball { name = "${pname}-${version}"; @@ -68,7 +68,7 @@ in buildNpmPackage rec { patches; patchFlags = [ "-p4" ]; sourceRoot = "${src.name}/${cargoRoot}"; - hash = "sha256-zc5AarCbrJixcin8t+Ws8fH0ULM9rp3sUFsDb0htPuM="; + hash = "sha256-MjGKQky6LGtpG1maBWd+WkMZlnZfdl9Sm2dlvdD8ANw="; }; cargoRoot = "apps/desktop/desktop_native"; From c0348dcf9c670092fd5ae6fc5437950f1f735549 Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Thu, 5 Sep 2024 19:10:23 +0000 Subject: [PATCH 4/4] bitwarden-cli: 2024.8.1 -> 2024.8.2 Diff: https://github.com/bitwarden/clients/compare/cli-v2024.8.1...cli-v2024.8.2 Changelog: https://github.com/bitwarden/clients/releases/tag/cli-v2024.8.2 --- pkgs/by-name/bi/bitwarden-cli/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/bi/bitwarden-cli/package.nix b/pkgs/by-name/bi/bitwarden-cli/package.nix index 25b7afe6ec4f..e4a4ce8a5c2c 100644 --- a/pkgs/by-name/bi/bitwarden-cli/package.nix +++ b/pkgs/by-name/bi/bitwarden-cli/package.nix @@ -12,13 +12,13 @@ buildNpmPackage rec { pname = "bitwarden-cli"; - version = "2024.8.1"; + version = "2024.8.2"; src = fetchFromGitHub { owner = "bitwarden"; repo = "clients"; rev = "cli-v${version}"; - hash = "sha256-l9fLh1YFivVcMs688vM0pHoN0Um2r/EDpo7dvwvZFwY="; + hash = "sha256-F/UbaNKkyf8AoTSa0B0Ipdr5Z8qAkbk7tJ0Cdq7gk+U="; }; postPatch = '' @@ -28,7 +28,7 @@ buildNpmPackage rec { nodejs = nodejs_20; - npmDepsHash = "sha256-/6yWdTy6/GvYy8u5eZB+x5KRG6vhPVE0DIn+RUAO5MI="; + npmDepsHash = "sha256-SnrK26QaxHYKX0532rGBASjx9PwxKSsVFRzZ3Cs2GPk="; nativeBuildInputs = [ (python3.withPackages (ps: with ps; [ setuptools ]))