From e4bddbe5f89026ac08e8da1aa038806dc03c9b33 Mon Sep 17 00:00:00 2001 From: Seyon Sivarajah Date: Fri, 28 Jul 2023 17:53:12 +0100 Subject: [PATCH] set macos frameworks explicitly (#49) also set channel to stable (1.71) --- devenv.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/devenv.nix b/devenv.nix index e2b236c1..1d90a6b2 100644 --- a/devenv.nix +++ b/devenv.nix @@ -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 @@ -21,6 +26,7 @@ languages.rust = { enable = true; + channel = "stable"; components = [ "rustc" "cargo" "clippy" "rustfmt" "rust-analyzer" ]; };