nixpkgs/pkgs/stdenv
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
..
cross pkgs: fix typos 2023-05-19 22:31:04 -04:00
custom
cygwin
darwin stdenv: avoid -p flag for strip on aarch64-darwin 2023-04-24 10:33:11 +03:00
freebsd
generic stdenv/setup.sh: deal with Nix < 2.4 structured attrs 2023-05-29 23:12:24 +02:00
linux bootstrap-tools-cross: add loongarch64-linux 2023-05-04 09:51:11 +03:00
native treewide: use lib.optionals 2023-02-14 19:11:59 +01:00
nix
tests stdenv.tests: Add succeedOnFailure 2022-11-14 19:03:35 +01:00
adapters.nix stdenvAdapters: fix preservation of env.NIX_CFLAGS_COMPILE 2023-04-12 21:27:34 +03:00
booter.nix
default.nix