clippy: fix build (#152211)
This commit is contained in:
parent
1a66fe1035
commit
aaff0d644f
@ -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
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user