Merge pull request #167431 from K900/fix-rustfmt
rustfmt: stop pretending we're on nightly
This commit is contained in:
commit
6e2cc949bc
@ -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";
|
||||
|
@ -3,6 +3,7 @@
|
||||
, lib
|
||||
, rustPlatform
|
||||
, rustfmt
|
||||
, protobuf
|
||||
}:
|
||||
let
|
||||
src = fetchFromGitHub {
|
||||
@ -30,7 +31,9 @@ in
|
||||
|
||||
buildAndTestSubdir = "server";
|
||||
|
||||
nativeBuildInputs = [ rustfmt ];
|
||||
PROTOC = "${protobuf}/bin/protoc";
|
||||
|
||||
nativeBuildInputs = [ rustfmt rustPlatform.bindgenHook ];
|
||||
|
||||
# test rely on libindradb and it can't be found
|
||||
# failure at https://github.com/indradb/indradb/blob/master/server/tests/plugins.rs#L63
|
||||
@ -44,7 +47,9 @@ in
|
||||
|
||||
cargoSha256 = "sha256-pxan6W/CEsOxv8DbbytEBuIqxWn/C4qT4ze/RnvESOM=";
|
||||
|
||||
nativeBuildInputs = [ rustfmt ];
|
||||
PROTOC = "${protobuf}/bin/protoc";
|
||||
|
||||
nativeBuildInputs = [ rustfmt rustPlatform.bindgenHook ];
|
||||
|
||||
buildAndTestSubdir = "client";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user