diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2022-01-01 06:31:57 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-01 06:31:57 +0000 |
commit | aaff0d644f3e883dc738519c3d558dc6c6af18a1 (patch) | |
tree | 92d0d47a4f96c4f9930d7580ca64816941b3ef0f /pkgs/development/compilers/rust | |
parent | 1a66fe1035a41f0fda1b6ae4aefdf36e5ca28373 (diff) |
clippy: fix build (#152211)
Diffstat (limited to 'pkgs/development/compilers/rust')
-rw-r--r-- | pkgs/development/compilers/rust/clippy.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/compilers/rust/clippy.nix b/pkgs/development/compilers/rust/clippy.nix index a3597e9febf77..7ebdaa474ad6e 100644 --- a/pkgs/development/compilers/rust/clippy.nix +++ b/pkgs/development/compilers/rust/clippy.nix @@ -20,6 +20,10 @@ rustPlatform.buildRustPackage { # (/private/tmp/nix-build-clippy-1.36.0.drv-0/rustc-1.36.0-src/src/librustc_llvm) doCheck = false; + preBuild = '' + export CARGO_TARGET_DIR="$(pwd)/target" + ''; + preFixup = lib.optionalString stdenv.isDarwin '' install_name_tool -add_rpath "${rustc}/lib" $out/bin/clippy-driver ''; |