From dc374218c9038eb98fe1ba048d89f0df319f53c5 Mon Sep 17 00:00:00 2001 From: Bas van Dijk Date: Mon, 19 Aug 2019 12:54:40 +0200 Subject: rustfmt: make sure to test rustfmt instead of rustc Co-Authored-By: symphorien --- pkgs/development/compilers/rust/rustfmt.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/compilers/rust/rustfmt.nix b/pkgs/development/compilers/rust/rustfmt.nix index 62a6ccbbef17..e564cabd85ec 100644 --- a/pkgs/development/compilers/rust/rustfmt.nix +++ b/pkgs/development/compilers/rust/rustfmt.nix @@ -7,7 +7,7 @@ rustPlatform.buildRustPackage rec { # the rust source tarball already has all the dependencies vendored, no need to fetch them again cargoVendorDir = "vendor"; preBuild = "pushd src/tools/rustfmt"; - postBuild = "popd"; + preInstall = "popd"; buildInputs = stdenv.lib.optional stdenv.isDarwin Security; -- cgit 1.4.1