libdeltachat: fix cross compilation

This commit is contained in:
Nick Cao
2024-12-19 21:08:13 -05:00
parent d441bda392
commit 0315d183b8
+5
View File
@@ -72,6 +72,11 @@ stdenv.mkDerivation rec {
--replace __FILE__ '"${placeholder "out"}/include/deltachat.h"'
'';
env = {
CARGO_BUILD_TARGET = stdenv.hostPlatform.rust.rustcTarget;
CARGO_BUILD_RUSTFLAGS = "-C linker=${stdenv.cc.targetPrefix}cc";
};
passthru = {
tests = {
inherit deltachat-desktop deltachat-repl deltachat-rpc-server;