Open simonzkl opened 1 day ago
@NixOS/darwin-core possibly a result of the new stdenv?
Probably due to setting NIX_DONT_SET_RPATH_FOR_TARGET
when Darwin is the target platform. There’s been talk of reverting it due to the negative impact it’s having.
I opened https://github.com/NixOS/nixpkgs/pull/355667 to revert, but it’s technically a breaking change for 24.11, so it presumably needs approval for backporting.
Describe the bug
The
pkgsBuildHost.<x>
andpkgsBuildBuild.<x>
derivations evaluate differently when using a cross-compiling nixpkgs instance (darwin -> linux). This is expected for packages likepkg-config
wherehost
matters, but not for everything else (e.g.jq
). The end result is that almost everything innativeBuildInputs
misses the binary cache and needs to be rebuilt. This could be fixed by moving these packages todepsBuildBuild
, but this is a massive change both in nixpkgs and downstream projects.This is a regression from
nixos-24.05
. It also works as expected when cross-compilingx86_64-linux
->aarch64-linux
, so I think it's something specific to the darwin stdenv in unstable.Steps To Reproduce
Expected behavior
Additional context
Nixpkgs revision:
76612b17c0ce71689921ca12d9ffdc9c23ce40b2
Notify maintainers
@NixOS/darwin-team
Metadata
Add a :+1: reaction to issues you find important.