mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
rustPlatform: fix cross-compiling by using native diff
This commit is contained in:
parent
92c3267ad4
commit
0a8fb89fca
@ -70,7 +70,8 @@ let
|
||||
|
||||
# Specify the stdenv's `diff` by abspath to ensure that the user's build
|
||||
# inputs do not cause us to find the wrong `diff`.
|
||||
diff = "${diffutils}/bin/diff";
|
||||
# The `.nativeDrv` stanza works like nativeBuildInputs and ensures cross-compiling has the right version available.
|
||||
diff = "${diffutils.nativeDrv or diffutils}/bin/diff";
|
||||
|
||||
in
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user