From 21f646c18439ddb1a8ae686b09db9606461aee8f Mon Sep 17 00:00:00 2001 From: sgoudham Date: Tue, 4 Jul 2023 20:01:56 +0100 Subject: [PATCH] refactor(nix): pin nightly and use in `nix develop` --- flake.nix | 3 +-- rust-toolchain.toml | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index c6b2f59..89c0709 100644 --- a/flake.nix +++ b/flake.nix @@ -51,8 +51,7 @@ name = "rust-shell"; inputsFrom = builtins.attrValues self.checks.${system}; nativeBuildInputs = with pkgs; [ - cargo - rustc + rustTarget # The `postprocessors` key hasn't been released yet. (git-cliff.overrideAttrs (drv: rec { diff --git a/rust-toolchain.toml b/rust-toolchain.toml index e8c2cd0..ed0907a 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "nightly" -profile = "default" \ No newline at end of file +channel = "nightly-2023-07-04" +components = [ "rustfmt", "rustc", "clippy", "rust-analyzer" ] \ No newline at end of file