Skip to content

Commit

Permalink
fix(nix): use native gcc on macos
Browse files Browse the repository at this point in the history
Closes #652
  • Loading branch information
Saghen committed Jan 4, 2025
1 parent bc480aa commit 3ab6832
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,12 @@
program = let
buildScript = pkgs.writeShellApplication {
name = "build-plugin";
runtimeInputs = with pkgs; [ fenix.minimal.toolchain gcc ];
runtimeInputs = with pkgs;
[
fenix.minimal.toolchain
]
# use the native gcc on macos, see #652
++ lib.optionals (!pkgs.stdenv.isDarwin) [ gcc ];
text = ''
cargo build --release
'';
Expand Down

0 comments on commit 3ab6832

Please sign in to comment.