nixpkgs/pkgs/stdenv/generic
sternenseemann 1a29857b8a stdenv/setup.sh: deal with Nix < 2.4 structured attrs
Nix does not (as far it is documented) guarantee that NIX_ATTRS_*_FILE
is set, the only [documented] guarantee seems to be:

> […] made available to the builder via the file .attrs.json in the
> builder’s temporary directory.

This guarantee is of course affected by https://github.com/NixOS/nix/issues/6736,
so it seems to be prudent to fall back to the Nix 2.3 style ATTRS_*_FILE
env vars before defaulting to the expected location in case neither is
available.

See also:

- https://github.com/NixOS/nixpkgs/pull/214937#discussion_r1178101895
- https://github.com/nixos/nixpkgs/commit/afef6588e250

[documented]: https://nixos.org/manual/nix/stable/language/advanced-attributes.html#adv-attr-structuredAttrs
2023-05-29 23:12:24 +02:00
..
builder.sh Revert "Merge remote-tracking branch 'origin/python-unstable' into staging-next" 2021-09-05 15:02:25 +02:00
check-meta.nix stdenv: factor out meta attr augmentation for reusability 2023-05-01 20:18:11 +03:00
common-path.nix stdenv/common-path.nix: move to stdenv/generic/ 2022-07-29 18:24:00 -04:00
default-builder.sh stdenv: support opt-in __structuredAttrs 2022-12-08 06:13:19 +02:00
default.nix stdenv: sort defaultNativeBuildInputs alphabetically 2022-12-13 01:12:20 +02:00
make-derivation.nix Merge pull request #230666 from alyssais/inputDerivation-passAsFile 2023-05-09 20:36:29 +02:00
setup.sh stdenv/setup.sh: deal with Nix < 2.4 structured attrs 2023-05-29 23:12:24 +02:00