Skip to content

Commit

Permalink
Bump nightly rustfmt version
Browse files Browse the repository at this point in the history
  • Loading branch information
oxalica committed May 30, 2024
1 parent b444ca3 commit 8f4a7bd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ rec {
inherit (builtins) substring;
inherit (nixpkgs) lib;

# For rustfmt and fuzz.
nightlyVersion = "2024-05-01";

mtime = self.lastModifiedDate;
date = "${substring 0 4 mtime}-${substring 4 2 mtime}-${substring 6 2 mtime}";
rev = self.rev or (lib.warn "Git changes are not committed" (self.dirtyRev or "dirty"));
Expand Down Expand Up @@ -102,7 +105,7 @@ rec {
devShells.without-rust = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
# Override the stable rustfmt.
rustPkgs.rust-nightly_2024-01-01.availableComponents.rustfmt
rustPkgs."rust-nightly_${nightlyVersion}".availableComponents.rustfmt

# Don't include `nix` by default. If would override user's (newer
# or patched) one, cause damage or misbehavior due to version
Expand Down Expand Up @@ -153,8 +156,8 @@ rec {
});

devShells.fuzz = pkgs.mkShell {
packages = with pkgs; with rustPkgs; [
rust-nightly_2024-01-01
packages = with pkgs; [
rustPkgs."rust-nightly_${nightlyVersion}"
cargo-fuzz
llvmPackages_14.llvm
jq
Expand Down

0 comments on commit 8f4a7bd

Please sign in to comment.