lol

bitwarden-desktop: 2025.5.1 -> 2025.6.0 (#420516)

authored by

Sandro and committed by
GitHub
53248739 370b50d8

+297 -9
+282
pkgs/by-name/bi/bitwarden-desktop/fix-lock-files.diff
···
··· 1 + diff --git a/apps/cli/package.json b/apps/cli/package.json 2 + index 2ec4e6f697..db5981b5ec 100644 3 + --- a/apps/cli/package.json 4 + +++ b/apps/cli/package.json 5 + @@ -85,7 +85,7 @@ 6 + "multer": "1.4.5-lts.2", 7 + "node-fetch": "2.6.12", 8 + "node-forge": "1.3.1", 9 + - "open": "10.1.2", 10 + + "open": "8.4.2", 11 + "papaparse": "5.5.3", 12 + "proper-lockfile": "4.1.2", 13 + "rxjs": "7.8.1", 14 + diff --git a/apps/desktop/desktop_native/Cargo.lock b/apps/desktop/desktop_native/Cargo.lock 15 + index 05663ea7e0..eadd75e598 100644 16 + --- a/apps/desktop/desktop_native/Cargo.lock 17 + +++ b/apps/desktop/desktop_native/Cargo.lock 18 + @@ -162,7 +162,7 @@ dependencies = [ 19 + "serde_repr", 20 + "tokio", 21 + "url", 22 + - "zbus 5.6.0", 23 + + "zbus", 24 + ] 25 + 26 + [[package]] 27 + @@ -900,7 +900,7 @@ dependencies = [ 28 + "widestring", 29 + "windows 0.61.1", 30 + "windows-future", 31 + - "zbus 4.4.0", 32 + + "zbus", 33 + "zbus_polkit", 34 + "zeroizing-alloc", 35 + ] 36 + @@ -2063,10 +2063,10 @@ dependencies = [ 37 + "sha2", 38 + "subtle", 39 + "tokio", 40 + - "zbus 5.6.0", 41 + - "zbus_macros 5.6.0", 42 + + "zbus", 43 + + "zbus_macros", 44 + "zeroize", 45 + - "zvariant 5.5.1", 46 + + "zvariant", 47 + ] 48 + 49 + [[package]] 50 + @@ -2715,17 +2715,6 @@ dependencies = [ 51 + "syn", 52 + ] 53 + 54 + -[[package]] 55 + -name = "sha1" 56 + -version = "0.10.6" 57 + -source = "registry+https://github.com/rust-lang/crates.io-index" 58 + -checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" 59 + -dependencies = [ 60 + - "cfg-if", 61 + - "cpufeatures", 62 + - "digest", 63 + -] 64 + - 65 + [[package]] 66 + name = "sha2" 67 + version = "0.10.8" 68 + @@ -3921,9 +3910,9 @@ dependencies = [ 69 + 70 + [[package]] 71 + name = "zbus" 72 + -version = "4.4.0" 73 + +version = "5.5.0" 74 + source = "registry+https://github.com/rust-lang/crates.io-index" 75 + -checksum = "bb97012beadd29e654708a0fdb4c84bc046f537aecfde2c3ee0a9e4b4d48c725" 76 + +checksum = "59c333f648ea1b647bc95dc1d34807c8e25ed7a6feff3394034dc4776054b236" 77 + dependencies = [ 78 + "async-broadcast", 79 + "async-executor", 80 + @@ -3938,90 +3927,37 @@ dependencies = [ 81 + "enumflags2", 82 + "event-listener", 83 + "futures-core", 84 + - "futures-sink", 85 + - "futures-util", 86 + - "hex", 87 + - "nix", 88 + - "ordered-stream", 89 + - "rand 0.8.5", 90 + - "serde", 91 + - "serde_repr", 92 + - "sha1", 93 + - "static_assertions", 94 + - "tracing", 95 + - "uds_windows", 96 + - "windows-sys 0.52.0", 97 + - "xdg-home", 98 + - "zbus_macros 4.4.0", 99 + - "zbus_names 3.0.0", 100 + - "zvariant 4.2.0", 101 + -] 102 + - 103 + -[[package]] 104 + -name = "zbus" 105 + -version = "5.6.0" 106 + -source = "registry+https://github.com/rust-lang/crates.io-index" 107 + -checksum = "2522b82023923eecb0b366da727ec883ace092e7887b61d3da5139f26b44da58" 108 + -dependencies = [ 109 + - "async-broadcast", 110 + - "async-recursion", 111 + - "async-trait", 112 + - "enumflags2", 113 + - "event-listener", 114 + - "futures-core", 115 + "futures-lite", 116 + "hex", 117 + "nix", 118 + "ordered-stream", 119 + "serde", 120 + "serde_repr", 121 + + "static_assertions", 122 + "tokio", 123 + "tracing", 124 + "uds_windows", 125 + "windows-sys 0.59.0", 126 + "winnow", 127 + - "zbus_macros 5.6.0", 128 + - "zbus_names 4.2.0", 129 + - "zvariant 5.5.1", 130 + + "xdg-home", 131 + + "zbus_macros", 132 + + "zbus_names", 133 + + "zvariant", 134 + ] 135 + 136 + [[package]] 137 + name = "zbus_macros" 138 + -version = "4.4.0" 139 + +version = "5.5.0" 140 + source = "registry+https://github.com/rust-lang/crates.io-index" 141 + -checksum = "267db9407081e90bbfa46d841d3cbc60f59c0351838c4bc65199ecd79ab1983e" 142 + +checksum = "f325ad10eb0d0a3eb060203494c3b7ec3162a01a59db75d2deee100339709fc0" 143 + dependencies = [ 144 + "proc-macro-crate", 145 + "proc-macro2", 146 + "quote", 147 + "syn", 148 + - "zvariant_utils 2.1.0", 149 + -] 150 + - 151 + -[[package]] 152 + -name = "zbus_macros" 153 + -version = "5.6.0" 154 + -source = "registry+https://github.com/rust-lang/crates.io-index" 155 + -checksum = "05d2e12843c75108c00c618c2e8ef9675b50b6ec095b36dc965f2e5aed463c15" 156 + -dependencies = [ 157 + - "proc-macro-crate", 158 + - "proc-macro2", 159 + - "quote", 160 + - "syn", 161 + - "zbus_names 4.2.0", 162 + - "zvariant 5.5.1", 163 + - "zvariant_utils 3.2.0", 164 + -] 165 + - 166 + -[[package]] 167 + -name = "zbus_names" 168 + -version = "3.0.0" 169 + -source = "registry+https://github.com/rust-lang/crates.io-index" 170 + -checksum = "4b9b1fef7d021261cc16cba64c351d291b715febe0fa10dc3a443ac5a5022e6c" 171 + -dependencies = [ 172 + - "serde", 173 + - "static_assertions", 174 + - "zvariant 4.2.0", 175 + + "zbus_names", 176 + + "zvariant", 177 + + "zvariant_utils", 178 + ] 179 + 180 + [[package]] 181 + @@ -4033,20 +3969,20 @@ dependencies = [ 182 + "serde", 183 + "static_assertions", 184 + "winnow", 185 + - "zvariant 5.5.1", 186 + + "zvariant", 187 + ] 188 + 189 + [[package]] 190 + name = "zbus_polkit" 191 + -version = "4.0.0" 192 + +version = "5.0.0" 193 + source = "registry+https://github.com/rust-lang/crates.io-index" 194 + -checksum = "00a29bfa927b29f91b7feb4e1990f2dd1b4604072f493dc2f074cf59e4e0ba90" 195 + +checksum = "ad23d5c4d198c7e2641b33e6e0d1f866f117408ba66fe80bbe52e289eeb77c52" 196 + dependencies = [ 197 + "enumflags2", 198 + "serde", 199 + "serde_repr", 200 + "static_assertions", 201 + - "zbus 4.4.0", 202 + + "zbus", 203 + ] 204 + 205 + [[package]] 206 + @@ -4149,19 +4085,6 @@ dependencies = [ 207 + "syn", 208 + ] 209 + 210 + -[[package]] 211 + -name = "zvariant" 212 + -version = "4.2.0" 213 + -source = "registry+https://github.com/rust-lang/crates.io-index" 214 + -checksum = "2084290ab9a1c471c38fc524945837734fbf124487e105daec2bb57fd48c81fe" 215 + -dependencies = [ 216 + - "endi", 217 + - "enumflags2", 218 + - "serde", 219 + - "static_assertions", 220 + - "zvariant_derive 4.2.0", 221 + -] 222 + - 223 + [[package]] 224 + name = "zvariant" 225 + version = "5.5.1" 226 + @@ -4173,21 +4096,8 @@ dependencies = [ 227 + "serde", 228 + "url", 229 + "winnow", 230 + - "zvariant_derive 5.5.1", 231 + - "zvariant_utils 3.2.0", 232 + -] 233 + - 234 + -[[package]] 235 + -name = "zvariant_derive" 236 + -version = "4.2.0" 237 + -source = "registry+https://github.com/rust-lang/crates.io-index" 238 + -checksum = "73e2ba546bda683a90652bac4a279bc146adad1386f25379cf73200d2002c449" 239 + -dependencies = [ 240 + - "proc-macro-crate", 241 + - "proc-macro2", 242 + - "quote", 243 + - "syn", 244 + - "zvariant_utils 2.1.0", 245 + + "zvariant_derive", 246 + + "zvariant_utils", 247 + ] 248 + 249 + [[package]] 250 + @@ -4200,18 +4110,7 @@ dependencies = [ 251 + "proc-macro2", 252 + "quote", 253 + "syn", 254 + - "zvariant_utils 3.2.0", 255 + -] 256 + - 257 + -[[package]] 258 + -name = "zvariant_utils" 259 + -version = "2.1.0" 260 + -source = "registry+https://github.com/rust-lang/crates.io-index" 261 + -checksum = "c51bcff7cc3dbb5055396bcf774748c3dab426b4b8659046963523cee4808340" 262 + -dependencies = [ 263 + - "proc-macro2", 264 + - "quote", 265 + - "syn", 266 + + "zvariant_utils", 267 + ] 268 + 269 + [[package]] 270 + diff --git a/package-lock.json b/package-lock.json 271 + index 5df63a79dd..702b6d1c81 100644 272 + --- a/package-lock.json 273 + +++ b/package-lock.json 274 + @@ -225,7 +225,7 @@ 275 + "multer": "1.4.5-lts.2", 276 + "node-fetch": "2.6.12", 277 + "node-forge": "1.3.1", 278 + - "open": "10.1.2", 279 + + "open": "8.4.2", 280 + "papaparse": "5.5.3", 281 + "proper-lockfile": "4.1.2", 282 + "rxjs": "7.8.1",
+15 -9
pkgs/by-name/bi/bitwarden-desktop/package.nix
··· 5 cargo, 6 copyDesktopItems, 7 darwin, 8 - electron_34, 9 fetchFromGitHub, 10 gnome-keyring, 11 jq, ··· 25 let 26 description = "Secure and free password manager for all of your devices"; 27 icon = "bitwarden"; 28 - electron = electron_34; 29 30 # argon2 npm dependency is using `std::basic_string<uint8_t>`, which is no longer allowed in LLVM 19 31 buildNpmPackage' = buildNpmPackage.override { ··· 34 in 35 buildNpmPackage' rec { 36 pname = "bitwarden-desktop"; 37 - version = "2025.5.1"; 38 39 src = fetchFromGitHub { 40 owner = "bitwarden"; 41 repo = "clients"; 42 rev = "desktop-v${version}"; 43 - hash = "sha256-1gxd73E7Y7e1A6yU+J3XYQ4QzXZTxuKd+AE+t8HD478="; 44 }; 45 46 patches = [ 47 ./electron-builder-package-lock.patch 48 ./dont-auto-setup-biometrics.patch 49 - ./set-exe-path.patch # ensures `app.getPath("exe")` returns our wrapper, not ${electron}/bin/electron 50 - ./skip-afterpack-and-aftersign.patch # on linux: don't flip fuses, don't create wrapper script, on darwin: don't try copying safari extensions, don't try re-signing app 51 - ./dont-use-platform-triple.patch # since out arch doesn't match upstream, we'll generate and use desktop_napi.node instead of desktop_napi.${platform}-${arch}.node 52 ]; 53 54 postPatch = '' ··· 76 "--ignore-scripts" 77 ]; 78 npmWorkspace = "apps/desktop"; 79 - npmDepsHash = "sha256-0IoBPRGdtkMeTrT5cqZLHB/WrUCONtsJ6YHh0y4K5Ls="; 80 81 cargoDeps = rustPlatform.fetchCargoVendor { 82 inherit ··· 86 cargoRoot 87 patches 88 ; 89 - hash = "sha256-ZD/UPYRa+HR7hyWDP6S/BKvQpYRDwWQJV6iGF9LT2uY="; 90 }; 91 cargoRoot = "apps/desktop/desktop_native"; 92
··· 5 cargo, 6 copyDesktopItems, 7 darwin, 8 + electron_36, 9 fetchFromGitHub, 10 gnome-keyring, 11 jq, ··· 25 let 26 description = "Secure and free password manager for all of your devices"; 27 icon = "bitwarden"; 28 + electron = electron_36; 29 30 # argon2 npm dependency is using `std::basic_string<uint8_t>`, which is no longer allowed in LLVM 19 31 buildNpmPackage' = buildNpmPackage.override { ··· 34 in 35 buildNpmPackage' rec { 36 pname = "bitwarden-desktop"; 37 + version = "2025.6.0"; 38 39 src = fetchFromGitHub { 40 owner = "bitwarden"; 41 repo = "clients"; 42 rev = "desktop-v${version}"; 43 + hash = "sha256-KI6oIMNtqfywVqeTdzthSHBnAlF55cINTr04LNSq0AM="; 44 }; 45 46 patches = [ 47 ./electron-builder-package-lock.patch 48 ./dont-auto-setup-biometrics.patch 49 + # The nixpkgs tooling trips over upstreams inconsistent lock files, so we fixed them by running npm install open@10.2.1 and cargo b 50 + ./fix-lock-files.diff 51 + 52 + # ensures `app.getPath("exe")` returns our wrapper, not ${electron}/bin/electron 53 + ./set-exe-path.patch 54 + # on linux: don't flip fuses, don't create wrapper script, on darwin: don't try copying safari extensions, don't try re-signing app 55 + ./skip-afterpack-and-aftersign.patch 56 + # since out arch doesn't match upstream, we'll generate and use desktop_napi.node instead of desktop_napi.${platform}-${arch}.node 57 + ./dont-use-platform-triple.patch 58 ]; 59 60 postPatch = '' ··· 82 "--ignore-scripts" 83 ]; 84 npmWorkspace = "apps/desktop"; 85 + npmDepsHash = "sha256-52cLVrfbeNeRH7OKN5QZdGD5VkUVliN0Rn/cbdohsG0="; 86 87 cargoDeps = rustPlatform.fetchCargoVendor { 88 inherit ··· 92 cargoRoot 93 patches 94 ; 95 + hash = "sha256-mt7zWKgH21khAIrfpBFzb+aS2V2mV56zMqCSLzDhGfQ="; 96 }; 97 cargoRoot = "apps/desktop/desktop_native"; 98