Skip to content

element-{desktop,web-unwrapped}: 1.12.30 -> 1.12.33, use electron 44 - #576521

Merged
teutat3s merged 2 commits into
NixOS:masterfrom
skowalak:element-1.12.32
Oct 29, 2026
Merged

teutat3s merged 2 commits into
NixOS:masterfrom
skowalak:element-1.12.32

Conversation

@skowalak

@skowalak skowalak commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Changelog: https://github.com/element-hq/element-web/releases/tag/v1.12.33
Diff: element-hq/element-web@v1.12.30...v1.12.33

This PR relates to #576496 . Electron is unpinned from Electron 42 to Electron 44. Currently that is 44.9.1 and upstream specifies 44.4.5 in apps/desktop/package.json.

In 1.12.31 a new unpublished (on npm) dependency was added: @element-hq/element-call-component. Upstream says in their node setup action:

Temporary, until @element-hq/element-call-component is published to npm. As a git dependency it is built on install by its prepare script, and pnpm runs that build in a checkout inside its store. pnpm/action-setup puts the store under ~/setup-pnpm/node_modules/.bin, and front-end tooling treats anything under a node_modules path as third-party code: Element Call's Babel and React Compiler passes skip its sources and its tsconfig is ignored, producing a bundle no local build produces, and almost no type declarations. Pointing the store elsewhere is the only fix available on this side; the proper fix is publishing the package, or making its prepare build path-independent.

But we disable pnpm install scripts, so building from source failed with the old approach. I see multiple options here:

  1. wait out until they publish the call component to npm
  2. build the call component in a separate derivation and use the old build approach
  3. use the official element web release artifact

I chose option 3, but if that is not good, please say so and i can change that back.

Things done

@skowalak skowalak changed the title Element 1.12.32 element-{desktop,web-unwrapped}: 1.12.30 -> 1.12.32 Oct 20, 2026
@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (update) This PR updates a package to a newer version 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. labels Oct 20, 2026
@skowalak
skowalak marked this pull request as ready for review October 21, 2026 21:49
@skowalak skowalak mentioned this pull request Oct 21, 2026
27 of 38 tasks
@skowalak
skowalak requested a review from teutat3s October 21, 2026 21:50
@skowalak skowalak changed the title element-{desktop,web-unwrapped}: 1.12.30 -> 1.12.32 element-{desktop,web-unwrapped}: 1.12.30 -> 1.12.32, use electron 44 Oct 24, 2026
@SuperSandro2000

Copy link
Copy Markdown
Member

I mean building from source is nicer, but I can understand that we do not want to hack to much together.

A comment that we should switch back is probably a good idea.

Not sure if meta.sourceProvenance need adjustment now.

@Half-Shot

Copy link
Copy Markdown

Hey, with my Element hat on: Use approach 2 for now. There will be an npm package in the future but not immediately so you should seek to build @element-hq/element-call-component separately.

@aeshakhzod

aeshakhzod commented Oct 27, 2026 •

Copy link
Copy Markdown

we did the 2 approach in our fork, you can check out if interested: https://git.oss.uzinfocom.uz/uchar/web/commit/a2b1816925c42b97905fda4f3f4f7ba3a6a4a41a

we took element-call from https://github.com/NixOS/nixpkgs/blob/master/pkgs/by-name/el/element-call/package.nix and replaced versions and hashes to match the upstream pinned refs

not quite liked the hard-coded mkdir and cp at lines 45 and 47, nonetheless it worked for us

also we refactored out faketty, so nix build -L shows logs as they appear, not once after it is finished (pinging guys at nrwl/nx#22445 for a workaround)

@skowalak

Copy link
Copy Markdown
Member Author

Okay, I'll try to rework this today for approach 2.

@skowalak

Copy link
Copy Markdown
Member Author

Ah yes, Element 1.12.33 is already out 😭

@skowalak skowalak changed the title element-{desktop,web-unwrapped}: 1.12.30 -> 1.12.32, use electron 44 element-{desktop,web-unwrapped}: 1.12.30 -> 1.12.33, use electron 44 Oct 27, 2026
@teutat3s

Copy link
Copy Markdown
Member

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 576521
Commit: 371d447d86d33d97f123b7104393d86bdd058177


aarch64-linux

✅ 2 packages built:
  • element-web (element-web-unwrapped)
  • element-desktop

@teutat3s teutat3s left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Builds and works fine for me on aarch64-linux. Thanks for making the from-source version work.

@teutat3s

Copy link
Copy Markdown
Member

Nit: In the commit message of 371d447 there's a duplicate Diff: Diff:

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". labels Oct 28, 2026
@teutat3s teutat3s added the backport release-26.05 Backport PR automatically label Oct 28, 2026
@skowalak

Copy link
Copy Markdown
Member Author

Fixed the Diff thing, I copied that from the commit before as they point to the same repo 😅

@teutat3s
teutat3s added this pull request to the merge queue Oct 29, 2026
Merged via the queue into NixOS:master with commit 0470df6 Oct 29, 2026
30 checks passed
@nixpkgs-ci

nixpkgs-ci Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot added the 8.has: port to stable This PR already has a backport to the stable release. label Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". 8.has: package (update) This PR updates a package to a newer version 8.has: port to stable This PR already has a backport to the stable release. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. backport release-26.05 Backport PR automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants