From 14b739010a614507c5c460df4e32b917a0e94559 Mon Sep 17 00:00:00 2001 From: aszlig Date: Tue, 23 Aug 2022 13:04:39 +0200 Subject: pkgs/rustfmt: Use Nightly version The config we're baking in by default relies on Nightly features, so it only makes sense to actually use a rustfmt version that supports it. Signed-off-by: aszlig --- pkgs/aszlig/rustfmt/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs') diff --git a/pkgs/aszlig/rustfmt/default.nix b/pkgs/aszlig/rustfmt/default.nix index ab8ecb41..9ec78bf9 100644 --- a/pkgs/aszlig/rustfmt/default.nix +++ b/pkgs/aszlig/rustfmt/default.nix @@ -18,7 +18,7 @@ let wrap_comments = true; }; -in rustfmt.overrideAttrs (drv: { +in (rustfmt.override { asNightly = true; }).overrideAttrs (drv: { patches = (drv.patches or []) ++ [ ./config.patch ]; DEFAULT_CONFIG_FILE = runCommand "rustfmt.conf" { nativeBuildInputs = [ remarshal ]; -- cgit 1.4.1