about summary refs log tree commit diff
path: root/pkgs/development/compilers/rust/rustfmt.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/compilers/rust/rustfmt.nix')
-rw-r--r--pkgs/development/compilers/rust/rustfmt.nix2
1 files changed, 1 insertions, 1 deletions
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;