Skip to content

element-desktop: add darwin to platforms - #412304

Merged
JohnRTitor merged 2 commits into
NixOS:masterfrom
mio-aotearoa:patch-2
Jun 9, 2025
Merged

JohnRTitor merged 2 commits into
NixOS:masterfrom
mio-aotearoa:patch-2

Conversation

@mio-aotearoa

@mio-aotearoa mio-aotearoa commented May 30, 2025 •

Copy link
Copy Markdown
Contributor

It builds and runs on my darwin aarch64 device with allowUnsupportedSystem = true Update: No this is incorrect

This PR actually fix platforms on non darwin platforms see #412304 (comment)

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • Nixpkgs 25.11 Release Notes (or backporting 24.11 and 25.05 Nixpkgs Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
  • NixOS 25.11 Release Notes (or backporting 24.11 and 25.05 NixOS Release notes)
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

It builds and runs on my darwin aarch64 device
@ofborg ofborg Bot added 6.topic: darwin Running or building packages on Darwin ofborg-internal-error Ofborg encountered an error labels May 30, 2025
@ofborg ofborg Bot removed the ofborg-internal-error Ofborg encountered an error label May 30, 2025
@github-actions github-actions Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels May 30, 2025
@NickCao

NickCao commented Jun 6, 2025

Copy link
Copy Markdown
Member

Shouldn't this be instead, set on electron?

@teutat3s

teutat3s commented Jun 7, 2025

Copy link
Copy Markdown
Member

Shouldn't this be instead, set on electron?

The challenge is that we pick electron.source or electron-bin depending on the platform:

nix eval nixpkgs#element-desktop.meta.platforms --eval-system aarch64-darwin
[ "x86_64-darwin" "x86_64-linux" "armv7l-linux" "aarch64-linux" "aarch64-darwin" ]

nix eval nixpkgs#element-desktop.meta.platforms --eval-system aarch64-linux
[ "aarch64-linux" "armv5tel-linux" "armv6l-linux" "armv7a-linux" "armv7l-linux" "i686-linux" "loongarch64-linux" "m68k-linux" "microblaze-linux" "microblazeel-linux" "mips-linux" "mips64-linux" "mips64el-linux" "mipsel-linux" "powerpc64-linux" "powerpc64le-linux" "riscv32-linux" "riscv64-linux" "s390-linux" "s390x-linux" "x86_64-linux" ]

@JohnRTitor JohnRTitor 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 on Darwin. Thanks!

@mio-aotearoa

Copy link
Copy Markdown
Contributor Author

This suggestion might be better than this merged pr - #412303 (comment)

The challenge is that we pick electron.source or electron-bin depending on the platform

Wouldn't it make sense to meld the two lists for electron and electron-bin, instead of explicitly adding darwin unconditionally?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: darwin Running or building packages on Darwin 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants