Skip to content

Commit

Permalink
revert to manual package specification
Browse files Browse the repository at this point in the history
  • Loading branch information
ss2165 committed Jun 23, 2023
1 parent fc8b697 commit e6388a7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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!";
Expand All @@ -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;
Expand Down

0 comments on commit e6388a7

Please sign in to comment.