nixpkgs/pkgs/stdenv
Randy Eckenrode f61e189ad3
overrideSDK: support all deps attributes
This is effectively a rewrite of `overrideSDK`. It was required because
`wrapGAppsHook` propagates `depsTargetTarget` with the expectation that
it will effectively be `buildInputs` when the hook is itself used as a
`nativeBuildInput`. This propagates Gtk, which itself propagates the
default Dariwn SDK, making it effectively impossible to override the SDK
when a package depends on Gtk and uses `wrapGAppsHook`.

This rewrite implements the following improvements:

* Cross-compilation should be supported correctly (untested);
* Supports public and private frameworks;
* Supports SDK `libs`;
* Remaps instead of replacing extra (native) build inputs in the stdenv;
* Updates any Darwin framework references in `nix-support`; and
* It updates `xcodebuild` regardless of which input its in.

The implementation avoids recursion for performance reasons. Instead, it
enumerates transitive dependencies and walks the list from the leaf
packages backwards to the parent packages.
2024-03-29 10:03:08 -04:00
..
cross pkgs: fix typos 2023-05-19 22:31:04 -04:00
custom
cygwin
darwin overrideSDK: support all deps attributes 2024-03-29 10:03:08 -04:00
freebsd
generic make-derivation.nix: Fix checkMetaRecursively 2024-03-17 19:28:47 +01:00
linux pkgs/stdenv/linux: init powerpc64-unknown-linux-gnuabielfv2 bootstrap-files 2024-03-10 12:36:34 +01:00
native stdenv: fix stagesNative 2023-07-02 19:07:23 +10:00
nix
tests
adapters.nix overrideSDK: support all deps attributes 2024-03-29 10:03:08 -04:00
booter.nix pkgs/stdenv: fix typo in booter.nix docs 2023-09-04 22:24:12 +02:00
default.nix darwin.stdenv: refactor stdenv definition 2023-07-02 17:56:24 -04:00