Skip to content

Commit

Permalink
Merge pull request #115 from TornaxO7/fix/improve-flake
Browse files Browse the repository at this point in the history
reducing toolchain files to a single one
  • Loading branch information
AMythicDev authored Dec 13, 2023
2 parents 602957f + 1f4b986 commit 73a1ca6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 17 deletions.
16 changes: 3 additions & 13 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,13 @@
};

rust-toolchain = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
rust-nightly-toolchain = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain-nightly.toml;

shared_packages = with pkgs; [
just
];
in
with pkgs;
{
devShells = rec {
default = msrv;

nightly = mkShell {
packages = shared_packages ++ [ rust-nightly-toolchain ];
};

msrv = mkShell {
packages = shared_packages ++ [ rust-toolchain ];
devShells = {
default = mkShell {
packages = [ just ] ++ [ rust-toolchain ];
};
};
}
Expand Down
3 changes: 0 additions & 3 deletions rust-toolchain-nightly.toml

This file was deleted.

2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.67.0"
components = ["rust-src", "rust-analyzer"]
components = ["rust-src", "rust-analyzer", "rustfmt"]

0 comments on commit 73a1ca6

Please sign in to comment.