diff options
| author | sternenseemann <sternenseemann@systemli.org> | 2023-05-29 23:07:38 +0200 |
|---|---|---|
| committer | sternenseemann <sternenseemann@systemli.org> | 2023-05-29 23:12:24 +0200 |
| commit | 1a29857b8a93f5259f0c2e919becc0bf9db24f85 (patch) | |
| tree | 8e7fc07415ee4cd1b6838b93ca9d72b0ccb6cd0a /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch | |
| parent | 8d7893bf2234924335f1fca6eb62db637912c497 (diff) | |
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
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions
