libdeltachat: fix cross compilation (#366694)

This commit is contained in:
misuzu
2024-12-20 18:23:33 +02:00
committed by GitHub
+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;