mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
[Backport release-26.05] git: fix cross compilation (#528509)
This commit is contained in:
commit
4b84d62f05
1 changed files with 5 additions and 0 deletions
|
|
@ -212,6 +212,11 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
libsecret
|
||||
];
|
||||
|
||||
# This is required for building the rust build.rs script when cross compiling
|
||||
depsBuildBuild = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
|
||||
buildPackages.stdenv.cc
|
||||
];
|
||||
|
||||
env = {
|
||||
# required to support pthread_cancel()
|
||||
NIX_LDFLAGS =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue