diff options
author | Samyak S Sarnayak <samyak201@gmail.com> | 2023-12-15 20:41:08 +0530 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-12-15 17:46:56 +0100 |
commit | 0e4f9ff6ec9e31a559d9a544b1e71b8f7ac973c4 (patch) | |
tree | 6cfc4b26e998d1db2a474108f97d1ea309238324 /pkgs/development/compilers/rust | |
parent | 2c10cef2b38af301d50603c6fb8851677854a98f (diff) | |
download | nixlib-0e4f9ff6ec9e31a559d9a544b1e71b8f7ac973c4.tar nixlib-0e4f9ff6ec9e31a559d9a544b1e71b8f7ac973c4.tar.gz nixlib-0e4f9ff6ec9e31a559d9a544b1e71b8f7ac973c4.tar.bz2 nixlib-0e4f9ff6ec9e31a559d9a544b1e71b8f7ac973c4.tar.lz nixlib-0e4f9ff6ec9e31a559d9a544b1e71b8f7ac973c4.tar.xz nixlib-0e4f9ff6ec9e31a559d9a544b1e71b8f7ac973c4.tar.zst nixlib-0e4f9ff6ec9e31a559d9a544b1e71b8f7ac973c4.zip |
clippy: use unwrapped rustc when adding rpath for darwin
Diffstat (limited to 'pkgs/development/compilers/rust')
-rw-r--r-- | pkgs/development/compilers/rust/clippy.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/compilers/rust/clippy.nix b/pkgs/development/compilers/rust/clippy.nix index 8459002743bb..43a10c1c7374 100644 --- a/pkgs/development/compilers/rust/clippy.nix +++ b/pkgs/development/compilers/rust/clippy.nix @@ -31,8 +31,8 @@ rustPlatform.buildRustPackage { # [0]: https://github.com/rust-lang/rust/blob/f77f4d55bdf9d8955d3292f709bd9830c2fdeca5/src/bootstrap/builder.rs#L1543 # [1]: https://github.com/rust-lang/rust/blob/f77f4d55bdf9d8955d3292f709bd9830c2fdeca5/compiler/rustc_codegen_ssa/src/back/linker.rs#L323-L331 preFixup = lib.optionalString stdenv.isDarwin '' - install_name_tool -add_rpath "${rustc}/lib" "$out/bin/clippy-driver" - install_name_tool -add_rpath "${rustc}/lib" "$out/bin/cargo-clippy" + install_name_tool -add_rpath "${rustc.unwrapped}/lib" "$out/bin/clippy-driver" + install_name_tool -add_rpath "${rustc.unwrapped}/lib" "$out/bin/cargo-clippy" ''; meta = with lib; { |