Skip to content

element-desktop: fix darwin build - #486275

Closed
teutat3s wants to merge 1 commit into
NixOS:masterfrom
teutat3s:element-desktop-fix-darwin
Closed

teutat3s wants to merge 1 commit into
NixOS:masterfrom
teutat3s:element-desktop-fix-darwin

Conversation

@teutat3s

@teutat3s teutat3s commented Feb 2, 2026

Copy link
Copy Markdown
Member

Fixes #485589

Error message:

>   ⨯ Failed to check actool version. Is Xcode 26 or higher installed? See output of the `actool --version` CLI command for more details.  failedTask=build stackTrace=Error: Failed to check actool version. Is Xcode 26 or higher installed? See output of the `actool --version` CLI command for more details.
>     at Object.<anonymous> (/nix/var/nix/builds/nix-build-element-desktop-1.12.9.drv-0/b/source/node_modules/app-builder-lib/src/util/macosIconComposer.ts:15:38)
>     at Module._compile (node:internal/modules/cjs/loader:1761:14)
>     at Object..js (node:internal/modules/cjs/loader:1893:10)
>     at Module.load (node:internal/modules/cjs/loader:1481:32)
>     at Module._load (node:internal/modules/cjs/loader:1300:12)
>     at TracingChannel.traceSync (node:diagnostics_channel:328:14)
>     at wrapModuleLoad (node:internal/modules/cjs/loader:245:24)
>     at Module.require (node:internal/modules/cjs/loader:1504:12)
>     at require (node:internal/modules/helpers:152:16)
>     at Object.<anonymous> (/nix/var/nix/builds/nix-build-element-desktop-1.12.9.drv-0/b/source/node_modules/app-builder-lib/src/platformPackager.ts:51:1)
> error Command failed with exit code 1.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

>   ⨯ Failed to check actool version. Is Xcode 26 or higher installed? See output of the `actool --version` CLI command for more details.  failedTask=build stackTrace=Error: Failed to check actool version. Is Xcode 26 or higher installed? See output of the `actool --version` CLI command for more details.
>     at Object.<anonymous> (/nix/var/nix/builds/nix-build-element-desktop-1.12.9.drv-0/b/source/node_modules/app-builder-lib/src/util/macosIconComposer.ts:15:38)
>     at Module._compile (node:internal/modules/cjs/loader:1761:14)
>     at Object..js (node:internal/modules/cjs/loader:1893:10)
>     at Module.load (node:internal/modules/cjs/loader:1481:32)
>     at Module._load (node:internal/modules/cjs/loader:1300:12)
>     at TracingChannel.traceSync (node:diagnostics_channel:328:14)
>     at wrapModuleLoad (node:internal/modules/cjs/loader:245:24)
>     at Module.require (node:internal/modules/cjs/loader:1504:12)
>     at require (node:internal/modules/helpers:152:16)
>     at Object.<anonymous> (/nix/var/nix/builds/nix-build-element-desktop-1.12.9.drv-0/b/source/node_modules/app-builder-lib/src/platformPackager.ts:51:1)
> error Command failed with exit code 1.
@teutat3s teutat3s mentioned this pull request Feb 2, 2026
3 tasks done
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". labels Feb 2, 2026
@ofborg ofborg Bot added the 6.topic: darwin Running or building packages on Darwin label Feb 2, 2026
@rebmit

rebmit commented Feb 3, 2026

Copy link
Copy Markdown
Member

nixpkgs-review result for #486275

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 486275
Commit: 27110f76c877531f80c145562d2b096a2ef943cc (subsequent changes)
Merge: 6685161d31560b5804835cac2abfe547a145b80d

Logs: https://github.com/rebmit/nixpkgs-review-gha/actions/runs/21613892753


x86_64-darwin (sandbox = relaxed)

❌ 1 package failed to build:
  • element-desktop

Error logs: `x86_64-darwin`
element-desktop
  • installing native dependencies  arch=x64
  • completed installing native dependencies
  • packaging       platform=darwin arch=x64 electron=39.4.0 appOutDir=dist/mac
  • using custom unpacked Electron distribution  electronDist=electron-dist
  • copying unpacked Electron  source=/nix/build/nix-20664-182759212/source/electron-dist/Electron.app destination=/nix/build/nix-20664-182759212/source/dist/mac/Electron.app
  • could not find package matching version  pkgName=@types/node version=^22.10.3 parentPath=/nix/build/nix-20664-182759212/source/node_modules/png-to-ico
  • could not find package matching version  pkgName=@types/pg-pool version=2.0.6 parentPath=/nix/build/nix-20664-182759212/source/node_modules/@opentelemetry/instrumentation-pg
  ⨯ Failed to check actool version. Is Xcode 26 or higher installed? See output of the `actool --version` CLI command for more details.  failedTask=build stackTrace=Error: Failed to check actool version. Is Xcode 26 or higher installed? See output of the `actool --version` CLI command for more details.
    at Object.<anonymous> (/nix/build/nix-20664-182759212/source/node_modules/app-builder-lib/src/util/macosIconComposer.ts:15:38)
    at Module._compile (node:internal/modules/cjs/loader:1761:14)
    at Object..js (node:internal/modules/cjs/loader:1893:10)
    at Module.load (node:internal/modules/cjs/loader:1481:32)
    at Module._load (node:internal/modules/cjs/loader:1300:12)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:245:24)
    at Module.require (node:internal/modules/cjs/loader:1504:12)
    at require (node:internal/modules/helpers:152:16)
    at Object.<anonymous> (/nix/build/nix-20664-182759212/source/node_modules/app-builder-lib/src/platformPackager.ts:51:1)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

aarch64-darwin (sandbox = relaxed)

❌ 1 package failed to build:
  • element-desktop

Error logs: `aarch64-darwin`
element-desktop
  • installing native dependencies  arch=arm64
  • completed installing native dependencies
  • packaging       platform=darwin arch=arm64 electron=39.4.0 appOutDir=dist/mac-arm64
  • using custom unpacked Electron distribution  electronDist=electron-dist
  • copying unpacked Electron  source=/nix/build/nix-4049-3935720960/source/electron-dist/Electron.app destination=/nix/build/nix-4049-3935720960/source/dist/mac-arm64/Electron.app
  • could not find package matching version  pkgName=@types/node version=^22.10.3 parentPath=/nix/build/nix-4049-3935720960/source/node_modules/png-to-ico
  • could not find package matching version  pkgName=@types/pg-pool version=2.0.6 parentPath=/nix/build/nix-4049-3935720960/source/node_modules/@opentelemetry/instrumentation-pg
  ⨯ Failed to check actool version. Is Xcode 26 or higher installed? See output of the `actool --version` CLI command for more details.  failedTask=build stackTrace=Error: Failed to check actool version. Is Xcode 26 or higher installed? See output of the `actool --version` CLI command for more details.
    at Object.<anonymous> (/nix/build/nix-4049-3935720960/source/node_modules/app-builder-lib/src/util/macosIconComposer.ts:15:38)
    at Module._compile (node:internal/modules/cjs/loader:1761:14)
    at Object..js (node:internal/modules/cjs/loader:1893:10)
    at Module.load (node:internal/modules/cjs/loader:1481:32)
    at Module._load (node:internal/modules/cjs/loader:1300:12)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:245:24)
    at Module.require (node:internal/modules/cjs/loader:1504:12)
    at require (node:internal/modules/helpers:152:16)
    at Object.<anonymous> (/nix/build/nix-4049-3935720960/source/node_modules/app-builder-lib/src/platformPackager.ts:51:1)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@rebmit

rebmit commented Feb 3, 2026

Copy link
Copy Markdown
Member

Upstream PR element-hq/element-desktop#2791 introduces a dependency on actool from Xcode.

Using xcbuild may not be sufficient to address this issue. Perhaps we should suggest that upstream pre-generate Assets.car, following an approach like https://www.hendrik-erz.de/post/supporting-liquid-glass-icons-in-apps-without-xcode.

@teutat3s
teutat3s marked this pull request as draft February 3, 2026 02:46
@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". label Mar 17, 2026
@viraptor

Copy link
Copy Markdown
Contributor

I think this is superseded by #501797

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: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build failure: element-desktop

4 participants