Skip to content

Commit e5bcb60

Browse files
committed
build(nix): make it possible to build powerpc64le-linux and riscv64-linux 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
1 parent 9462af9 commit e5bcb60

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/nix.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ jobs:
4646
- deltachat-repl-armv6l-linux
4747
- deltachat-repl-armv7l-linux
4848
- deltachat-repl-i686-linux
49+
- deltachat-repl-powerpc64le-linux
50+
- deltachat-repl-riscv64-linux
4951
- deltachat-repl-win32
5052
- deltachat-repl-win64
5153
- deltachat-repl-x86_64-linux
@@ -63,6 +65,8 @@ jobs:
6365
- deltachat-rpc-server-armv7l-linux-wheel
6466
- deltachat-rpc-server-i686-linux
6567
- deltachat-rpc-server-i686-linux-wheel
68+
- deltachat-rpc-server-powerpc64le-linux
69+
- deltachat-rpc-server-riscv64-linux
6670
- deltachat-rpc-server-win32
6771
- deltachat-rpc-server-win32-wheel
6872
- deltachat-rpc-server-win64

flake.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@
6969
"armv6l-linux" = "armv6l-unknown-linux-musleabihf";
7070
"aarch64-linux" = "aarch64-unknown-linux-musl";
7171
"i686-linux" = "i686-unknown-linux-musl";
72+
"powerpc64le-linux" = "powerpc64le-unknown-linux-musl";
73+
"riscv64-linux" = "riscv64-unknown-linux-musl";
7274
"x86_64-darwin" = "x86_64-darwin";
7375
"aarch64-darwin" = "aarch64-darwin";
7476
};
@@ -136,6 +138,8 @@
136138
mkRustPackages "x86_64-linux" //
137139
mkRustPackages "armv7l-linux" //
138140
mkRustPackages "armv6l-linux" //
141+
mkRustPackages "powerpc64le-linux" //
142+
mkRustPackages "riscv64-linux" //
139143
mkRustPackages "x86_64-darwin" //
140144
mkRustPackages "aarch64-darwin" //
141145
mkAndroidPackages "armeabi-v7a" //

0 commit comments

Comments
 (0)