fix macos CI

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2023-01-21 16:01:35 +05:30
parent a0c99c2a70
commit 02676392fd
2 changed files with 25 additions and 11 deletions

View File

@@ -1,2 +1,14 @@
[build] [target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "link-arg=-fuse-ld=lld"] rustflags = ["-C", "link-arg=-fuse-ld=lld"]
[target.i686-unknown-linux-gnu]
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
[target.aarch64-unknown-linux-gnu]
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
[target.aarch64-apple-darwin]
rustflags = ["-C", "link-arg=-fuse-ld=zld"]
[target.x86_64-apple-darwin]
rustflags = ["-C", "link-arg=-fuse-ld=zld"]

View File

@@ -26,15 +26,17 @@
in rec { in rec {
devShell = with pkgs; devShell = with pkgs;
mkShell { mkShell {
nativeBuildInputs = [ nativeBuildInputs =
cmake [
openssl cmake
fontconfig openssl
pkg-config fontconfig
llvmPackages.lld pkg-config
rust-analyzer rust-analyzer
toolchain toolchain
]; ]
++ lib.optionals (with stdenv.hostPlatform; (isx86 || isi686 || isAarch64) && isLinux) [llvmPackages.lld]
++ lib.optionals stdenv.hostPlatform.isDarwin [zld darwin.apple_sdk.frameworks.Cocoa];
}; };
formatter = pkgs.alejandra; formatter = pkgs.alejandra;