Repository navigation
bitwarden-desktop: 2026.5.0 -> 2026.6.0, migrated to finalAttrs - #535399
Conversation
|
I am quite interested in maintaining this package, could I possible add myself as a maintainer? |
Just do it, you don't need permission. |
|
Can we just pull the electron update patch? |
|
Yes I saw the patch is merged, I am testing it right now. |
dbc0492 to
d1e6af0
Compare
|
Electron patch is successful. |
| ''; | ||
|
|
||
| nodejs = nodejs_22; | ||
| electron = electron_41; |
There was a problem hiding this comment.
Keep this in let, it does not need to be in the derivation attrs.
There was a problem hiding this comment.
Would it not limit overriding? I assume when migrating a package to finalAttrs, stuff usually located inside a let in block is moved out. ( I may be wrong, I am new (sorry))
There was a problem hiding this comment.
override already works because it works on the function args, whereas overrideAttrs works on the derivation attrs (and would not normally be expected to work for overriding dependencies). So it’s fine in the let. Of course it would be bitwarden-desktop.override { electron_41 = whatever }, since, again, it’s the fn params. The let is just for convenience when updating the input param to not have to update N references to it electron_39→electron_41.
There was a problem hiding this comment.
I see, thanks, I assumed that if someone were to want to override both the electron version and something in the drv, they would have to call both functions so I moved it inside to not have have that happen.
There was a problem hiding this comment.
That is normal and expected. Overriding an input with overrideAttrs is atypical. Ask yourself: if electron, why not then add every input to the output attrs? Why does every derivation not do that.
Yes, using override+overrideAttrs can be awkward, but it’s less awkward than the confusion of mixing fn params and derivation attrs. IMO, attrs that are not used by the function (in this case buildNpmPackage, but usually stdenv.mkDerivation) should be avoided to reduce confusion about their purpose; i.e., seeing it there makes me ask: “how does buildNpmPackage use the electron attr?” (it doesn’t, ofc). This has precedent in the move to env and the use of passthru and meta. The case where it’s useful to add to passthru is if it is expected some consumer would need to refer to it (which is not the case with bitwarden-desktop).
| inherit icon; | ||
| comment = description; | ||
| icon = "bitwarden"; | ||
| comment = finalAttrs.meta.description; |
There was a problem hiding this comment.
Some folks think that meta should not be derived into the output, but afaik this is fine (but I can be convinced it’s bad).
There was a problem hiding this comment.
I think it's not worth nitting here; we should probably do a treewide + set a policy if it's really that bad.
|
I will want to do some testing on this, especially with the patch. I know they had some issues upstream that delayed the update, and it’s not clear to me yet if there are changes not in this release that the update depends on. |
d1e6af0 to
c242efa
Compare
|
The patch confirmed didn't work, sadly. |
dotlambda
left a comment
There was a problem hiding this comment.
The order of the commits is wrong and the commit adding yourself to the maintainer list should only touch that file.
Also, please follow https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md#commit-conventions.
In which sense? It doesn't apply or the app doesn't work with it applied? Did it apply when you vendored the patch? |
My vendored patch didn't apply ( probably due to caching ) despite being included, and I was under the impression it worked, now with fetchpatch, results in this: bitwarden-desktop-2026.6.0-npm-deps> patching file package-lock.json
bitwarden-desktop-2026.6.0-npm-deps> Hunk #1 succeeded at 81 with fuzz 2.
bitwarden-desktop-2026.6.0-npm-deps> Hunk #3 FAILED at 6944.
bitwarden-desktop-2026.6.0-npm-deps> Hunk #4 FAILED at 7020.
bitwarden-desktop-2026.6.0-npm-deps> Hunk #5 succeeded at 5291 (offset -1864 lines).
bitwarden-desktop-2026.6.0-npm-deps> Hunk #6 succeeded at 5355 (offset -1864 lines).
bitwarden-desktop-2026.6.0-npm-deps> Hunk #7 FAILED at 7249.
bitwarden-desktop-2026.6.0-npm-deps> Hunk #8 FAILED at 7275.
bitwarden-desktop-2026.6.0-npm-deps> Hunk #9 FAILED at 7292.
bitwarden-desktop-2026.6.0-npm-deps> Hunk #10 FAILED at 19390.
bitwarden-desktop-2026.6.0-npm-deps> Hunk #11 succeeded at 16162 with fuzz 2 (offset -3504 lines).
bitwarden-desktop-2026.6.0-npm-deps> Hunk #12 succeeded at 16954 (offset -3106 lines).
bitwarden-desktop-2026.6.0-npm-deps> Hunk #13 succeeded at 16971 (offset -3106 lines).
bitwarden-desktop-2026.6.0-npm-deps> Hunk #14 succeeded at 17001 (offset -3106 lines).
bitwarden-desktop-2026.6.0-npm-deps> Hunk #15 FAILED at 20251.
bitwarden-desktop-2026.6.0-npm-deps> Hunk #16 FAILED at 20338.
bitwarden-desktop-2026.6.0-npm-deps> Hunk #17 FAILED at 20367.
bitwarden-desktop-2026.6.0-npm-deps> Hunk #18 succeeded at 18457 (offset -3472 lines).
bitwarden-desktop-2026.6.0-npm-deps> Hunk #19 succeeded at 18482 (offset -3472 lines).
bitwarden-desktop-2026.6.0-npm-deps> Hunk #20 FAILED at 24809.
bitwarden-desktop-2026.6.0-npm-deps> Hunk #21 succeeded at 21222 (offset -3631 lines).
bitwarden-desktop-2026.6.0-npm-deps> Hunk #22 FAILED at 24925.
bitwarden-desktop-2026.6.0-npm-deps> Hunk #23 succeeded at 21586 (offset -3623 lines).
bitwarden-desktop-2026.6.0-npm-deps> Hunk #24 succeeded at 21605 (offset -3623 lines).
bitwarden-desktop-2026.6.0-npm-deps> Hunk #25 succeeded at 21631 (offset -3623 lines).
bitwarden-desktop-2026.6.0-npm-deps> Hunk #26 succeeded at 21688 (offset -3620 lines).
bitwarden-desktop-2026.6.0-npm-deps> Hunk #27 succeeded at 21874 (offset -3620 lines).
bitwarden-desktop-2026.6.0-npm-deps> Hunk #28 succeeded at 21992 (offset -3620 lines).
bitwarden-desktop-2026.6.0-npm-deps> Hunk #29 FAILED at 27477.
bitwarden-desktop-2026.6.0-npm-deps> Hunk #30 FAILED at 27487.
bitwarden-desktop-2026.6.0-npm-deps> Hunk #31 FAILED at 30578.
bitwarden-desktop-2026.6.0-npm-deps> Hunk #32 FAILED at 30596.
bitwarden-desktop-2026.6.0-npm-deps> Hunk #33 succeeded at 32395 with fuzz 2 (offset -5093 lines).
bitwarden-desktop-2026.6.0-npm-deps> Hunk #34 FAILED at 37636.
bitwarden-desktop-2026.6.0-npm-deps> Hunk #35 succeeded at 35608 with fuzz 1 (offset -5341 lines).
bitwarden-desktop-2026.6.0-npm-deps> Hunk #36 FAILED at 42422.
bitwarden-desktop-2026.6.0-npm-deps> Hunk #37 FAILED at 44998.
bitwarden-desktop-2026.6.0-npm-deps> 18 out of 37 hunks FAILED -- saving rejects to file package-lock.json.rej
bitwarden-desktop-2026.6.0-npm-deps> patching file package-lock.json
bitwarden-desktop-2026.6.0-npm-deps> Hunk #2 succeeded at 5130 (offset -586 lines).
bitwarden-desktop-2026.6.0-npm-deps> Hunk #3 succeeded at 5234 (offset -586 lines).
bitwarden-desktop-2026.6.0-npm-deps> Hunk #4 succeeded at 14925 (offset -600 lines).
bitwarden-desktop-2026.6.0-npm-deps> Hunk #5 succeeded at 18364 (offset -600 lines).
bitwarden-desktop-2026.6.0-npm-deps> Hunk #6 succeeded at 21542 (offset -620 lines).
bitwarden-desktop-2026.6.0-npm-deps> Hunk #7 succeeded at 23546 (offset -620 lines).
bitwarden-desktop-2026.6.0-npm-deps> Hunk #8 succeeded at 23761 (offset -620 lines).
bitwarden-desktop-2026.6.0-npm-deps> Hunk #9 succeeded at 34290 (offset -616 lines).
bitwarden-desktop-2026.6.0-npm-deps> Hunk #10 succeeded at 43760 (offset -590 lines).
bitwarden-desktop-2026.6.0-npm-deps> patching file package.json
bitwarden-desktop-2026.6.0-npm-deps> Hunk #1 succeeded at 53 with fuzz 2.
bitwarden-desktop-2026.6.0-npm-deps> patching file package.jsonfrom: (fetchpatch2 {
url = "https://patch-diff.githubusercontent.com/raw/bitwarden/clients/pull/20448.patch";
hash = "sha256-6puP5XH8/LFPtst4/hBlHz2ZmKB+4bkGDY3qTk65sOo=";
}) |
c242efa to
1196b02
Compare
1196b02 to
809460a
Compare
|
All the comments should be handled I supposed, I am sorry for all the trouble!. |
Not at all: #535399 (review) |
809460a to
16b41ad
Compare
|
You still have the |
is it required to be just the numbers? |
16b41ad to
cb0a216
Compare
|
I am not sure why the action doesn't like the format of the maintainer list, my entry seems the same like all the others. |
|
It's not ordered alphabetically. |
cb0a216 to
63ba323
Compare
This comment was marked as off-topic.
This comment was marked as off-topic.
How about bumping to Personally I value getting rid of |
|
Look at my PR: #536329 maybe help. |
Would have to be tested to make sure everything works, however as solution until we get a official release with electron 41, this seems best. Thanks! |
|
Things done
https://github.com/bitwarden/clients/releases/tag/desktop-v2026.6.0
bitwarden/clients#20448 still not included, so still broken.
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.