summary refs log tree commit diff
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2022-04-06 00:49:09 +0300
committerK900 <me@0upti.me>2022-04-06 01:13:54 +0300
commit557f7572d8db3fb5ddddf5099c81725fb779edb7 (patch)
treeb13ab97844c4e7629f244137228b84f3c4201237
parent4097e922f6e877fccb1fd96a54ad09d0d9bf26ed (diff)
downloadnixpkgs-557f7572d8db3fb5ddddf5099c81725fb779edb7.tar
nixpkgs-557f7572d8db3fb5ddddf5099c81725fb779edb7.tar.gz
nixpkgs-557f7572d8db3fb5ddddf5099c81725fb779edb7.tar.bz2
nixpkgs-557f7572d8db3fb5ddddf5099c81725fb779edb7.tar.lz
nixpkgs-557f7572d8db3fb5ddddf5099c81725fb779edb7.tar.xz
nixpkgs-557f7572d8db3fb5ddddf5099c81725fb779edb7.tar.zst
nixpkgs-557f7572d8db3fb5ddddf5099c81725fb779edb7.zip
rustfmt: stop pretending we're on nightly
We're not, and starting with 1.59 the test behavior actually differs
based on these env vars.
-rw-r--r--pkgs/development/compilers/rust/rustfmt.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/compilers/rust/rustfmt.nix b/pkgs/development/compilers/rust/rustfmt.nix
index b3191c242fe..f8ac8bf39df 100644
--- a/pkgs/development/compilers/rust/rustfmt.nix
+++ b/pkgs/development/compilers/rust/rustfmt.nix
@@ -18,8 +18,8 @@ rustPlatform.buildRustPackage rec {
 
   # As of rustc 1.45.0, these env vars are required to build rustfmt (due to
   # https://github.com/rust-lang/rust/pull/72001)
-  CFG_RELEASE = "${rustPlatform.rust.rustc.version}-nightly";
-  CFG_RELEASE_CHANNEL = "nightly";
+  CFG_RELEASE = rustPlatform.rust.rustc.version;
+  CFG_RELEASE_CHANNEL = "stable";
 
   meta = with lib; {
     description = "A tool for formatting Rust code according to style guidelines";