Skip to content

Commit

Permalink
set macos frameworks explicitly (#49)
Browse files Browse the repository at this point in the history
also set channel to stable (1.71)
  • Loading branch information
ss2165 authored Jul 28, 2023
1 parent 5722bb8 commit e4bddbe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
{

# https://devenv.sh/packages/
#packages = with pkgs; [ cargo rustc rust-analyzer rustfmt clippy maturin ];
# on macos frameworks have to be explicitly specified
# otherwise a linker error ocurs on rust packages
packages = lib.optionals pkgs.stdenv.isDarwin (with pkgs.darwin.apple_sdk; [
frameworks.CoreServices
frameworks.CoreFoundation
]);

# Certain Rust tools won't work without this
# This can also be fixed by using oxalica/rust-overlay and specifying the rust-src extension
Expand All @@ -21,6 +26,7 @@

languages.rust = {
enable = true;
channel = "stable";
components = [ "rustc" "cargo" "clippy" "rustfmt" "rust-analyzer" ];
};

Expand Down

0 comments on commit e4bddbe

Please sign in to comment.