Skip to content

build(nix): make it possible to build powerpc64le-linux and riscv64-linux builds - #8354

Open
link2xt wants to merge 1 commit into
mainfrom
link2xt/ppc-riscv-builds
Open

build(nix): make it possible to build powerpc64le-linux and riscv64-linux builds#8354
link2xt wants to merge 1 commit into
mainfrom
link2xt/ppc-riscv-builds

Conversation

@link2xt

@link2xt link2xt commented Jun 20, 2026

Copy link
Copy Markdown
Collaborator

Part of #8349

Based on #8272

Commit message copy-pasted for convenience:


I have checked locally with "nix repl nixpkgs",
these are the targets currently supported:

  • legacyPackages.aarch64-darwin
  • legacyPackages.aarch64-linux
  • legacyPackages.armv6l-linux
  • legacyPackages.armv7l-linux
  • legacyPackages.i686-linux
  • legacyPackages.powerpc64le-linux
  • legacyPackages.riscv64-linux
  • legacyPackages.x86_64-darwin
  • legacyPackages.x86_64-freebsd
  • legacyPackages.x86_64-linux

Now we have all supported targets in the flake except for x86_64-freebsd

I tested locally that the builds work, but have not tested if it is possible to run them.

After running "nix build .#deltachat-rpc-server-powerpc64le-linux"
"file result/bin/deltachat-rpc-server" prints:

result/bin/deltachat-rpc-server: ELF 64-bit LSB executable, 64-bit PowerPC or cisco 7500, OpenPOWER ELF V2 ABI, version 1 (SYSV), statically linked, stripped

After running "nix build .#deltachat-rpc-server-riscv64-linux"
"file result/bin/deltachat-rpc-server" prints:

result/bin/deltachat-rpc-server: ELF 64-bit LSB pie executable, UCB RISC-V, RVC, double-float ABI, version 1 (SYSV), dynamically linked, interpreter /nix/store/ba1gsm7zvwl7id5njwzdx1igbdqydhm3-musl-riscv64-unknown-linux-musl-1.2.5/lib/ld-musl-riscv64.so.1, stripped

@link2xt
link2xt force-pushed the link2xt/refactor-flake.nix branch from 4259198 to 9be1444 Compare June 20, 2026 22:33
@link2xt
link2xt force-pushed the link2xt/ppc-riscv-builds branch from d30c5cc to bf1f005 Compare June 22, 2026 20:41
@link2xt
link2xt force-pushed the link2xt/refactor-flake.nix branch from 9be1444 to a469d31 Compare June 22, 2026 20:41
@link2xt
link2xt force-pushed the link2xt/ppc-riscv-builds branch from bf1f005 to 72c704d Compare June 22, 2026 20:46
@link2xt
link2xt force-pushed the link2xt/refactor-flake.nix branch 2 times, most recently from 62c1877 to 32b0e63 Compare June 22, 2026 21:02
@link2xt
link2xt force-pushed the link2xt/ppc-riscv-builds branch from 72c704d to 37337d5 Compare June 22, 2026 21:02
@link2xt
link2xt force-pushed the link2xt/refactor-flake.nix branch from 32b0e63 to 9462af9 Compare July 13, 2026 11:18
@link2xt
link2xt force-pushed the link2xt/ppc-riscv-builds branch from 37337d5 to e5bcb60 Compare July 13, 2026 11:18
@link2xt
link2xt force-pushed the link2xt/refactor-flake.nix branch from 9462af9 to f0bac1a Compare August 26, 2026 14:39
@link2xt
link2xt force-pushed the link2xt/refactor-flake.nix branch from f0bac1a to 2b3fedd Compare September 4, 2026 13:45
@link2xt
link2xt force-pushed the link2xt/ppc-riscv-builds branch from e5bcb60 to 8827bb6 Compare September 4, 2026 13:47
@link2xt
link2xt force-pushed the link2xt/refactor-flake.nix branch from 2b3fedd to f1e6489 Compare September 4, 2026 16:21
Base automatically changed from link2xt/refactor-flake.nix to main September 4, 2026 20:10
…inux builds

I have checked locally with "nix repl nixpkgs",
these are the targets currently supported:
 - legacyPackages.aarch64-darwin
 - legacyPackages.aarch64-linux
 - legacyPackages.armv6l-linux
 - legacyPackages.armv7l-linux
 - legacyPackages.i686-linux
 - legacyPackages.powerpc64le-linux
 - legacyPackages.riscv64-linux
 - legacyPackages.x86_64-darwin
 - legacyPackages.x86_64-freebsd
 - legacyPackages.x86_64-linux

Now we have all supported targets in the flake except for x86_64-freebsd

I tested locally that the builds work, but have not tested if it is possible to run them.

After running "nix build .#deltachat-rpc-server-powerpc64le-linux"
"file result/bin/deltachat-rpc-server" prints:
result/bin/deltachat-rpc-server: ELF 64-bit LSB executable, 64-bit PowerPC or cisco 7500, OpenPOWER ELF V2 ABI, version 1 (SYSV), statically linked, stripped

After running "nix build .#deltachat-rpc-server-riscv64-linux"
"file result/bin/deltachat-rpc-server" prints:
result/bin/deltachat-rpc-server: ELF 64-bit LSB pie executable, UCB RISC-V, RVC, double-float ABI, version 1 (SYSV), dynamically linked, interpreter /nix/store/ba1gsm7zvwl7id5njwzdx1igbdqydhm3-musl-riscv64-unknown-linux-musl-1.2.5/lib/ld-musl-riscv64.so.1, stripped
@link2xt
link2xt force-pushed the link2xt/ppc-riscv-builds branch from 8827bb6 to bffaeac Compare September 4, 2026 20:11
@link2xt
link2xt marked this pull request as ready for review September 4, 2026 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant