Skip to content

Commit

Permalink
chore: nix style tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
leeola committed Apr 18, 2023
1 parent c2dbd59 commit a99705f
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,20 @@
pkgs = import nixpkgs {
inherit system overlays;
};
rusttmp = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain;
rust = rusttmp.override {
rust-toolchain = (pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain).override {
extensions = [ "rust-analysis" ];
};
in
{
devShell = pkgs.mkShell {
buildInputs = [
pkgs.rust-analyzer
buildInputs = with pkgs; [
pkg-config
binutils
gcc
rust-analyzer
# using a hardcoded rustfmt version to support nightly rustfmt features.
pkgs.rust-bin.nightly."2022-09-20".rustfmt
rust
pkgs.pkg-config
pkgs.binutils
pkgs.gcc
rust-bin.nightly."2022-09-20".rustfmt
rust-toolchain
];
};
}
Expand Down

0 comments on commit a99705f

Please sign in to comment.