mirror of
https://github.com/chatmail/core.git
synced 2026-09-22 13:01:21 +03:00
build: build for macOS with nix
Closes https://github.com/chatmail/core/issues/6095
This commit is contained in:
5
.github/workflows/nix.yml
vendored
5
.github/workflows/nix.yml
vendored
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user