Skip to content

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

Draft
link2xt wants to merge 1 commit into
link2xt/refactor-flake.nixfrom
link2xt/ppc-riscv-builds
Draft

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

Conversation

@link2xt

@link2xt link2xt commented Jun 20, 2026

Copy link
Copy Markdown
Collaborator

Part of #8349

Based on #8272

@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 from a469d31 to 62c1877 Compare June 22, 2026 20:46
…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/refactor-flake.nix branch 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
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