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:
@@ -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