[Backport release-26.05] git: fix cross compilation (#528509)

This commit is contained in:
Philip Taron 2026-06-05 18:08:06 +00:00 committed by GitHub
commit 4b84d62f05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 =