From e6388a7c8e2ab1a49f4b1b15afedec434fffd61c Mon Sep 17 00:00:00 2001 From: seyon Date: Fri, 23 Jun 2023 12:48:07 +0100 Subject: [PATCH] revert to manual package specification --- devenv.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/devenv.nix b/devenv.nix index c49493d03..b41219cf2 100644 --- a/devenv.nix +++ b/devenv.nix @@ -4,7 +4,10 @@ # https://devenv.sh/basics/ # https://devenv.sh/packages/ - # packages = with pkgs; [ cargo rustc rust-analyzer rustfmt clippy ]; + # manually set rust packages rather than use devenv language support because + # it doesn't seem to be up to date for macos yet (link error) + packages = with pkgs; [ cargo rustc rust-analyzer rustfmt clippy ]; + env.RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}"; # https://devenv.sh/scripts/ scripts.hello.exec = "echo Welcome to hugr dev shell!"; @@ -16,7 +19,7 @@ # https://devenv.sh/languages/ # https://devenv.sh/reference/options/#languagesrustversion - languages.rust.enable = true; + # languages.rust.enable = true; # https://devenv.sh/pre-commit-hooks/ # pre-commit.hooks.shellcheck.enable = true;