Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,7 @@ jobs:
installable:
- deltachat-rpc-server
- deltachat-rpc-server-x86_64-darwin

# Fails to build
# because of <https://github.com/NixOS/nixpkgs/issues/413910>.
# - deltachat-rpc-server-aarch64-darwin
- deltachat-rpc-server-aarch64-darwin
steps:
- uses: actions/checkout@v6
with:
Expand Down
15 changes: 11 additions & 4 deletions nix/cross-rust-package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@
arch: packageName:
let
crossTarget = arch2targets."${arch}";
pkgsCross = import nixpkgs {
system = system;
crossSystem.config = crossTarget;
};
pkgsCross =
if system == crossSystem then
import nixpkgs
{
inherit system;
};
else
import nixpkgs {
inherit system;
crossSystem.config = crossTarget;
};
rustTarget = pkgsCross.stdenv.hostPlatform.rust.rustcTarget;
toolchain = fenixPkgs.combine [
fenixPkgs.stable.rustc
Expand Down
Loading