Files
nix/tests
Maximilian Bosch 0c5333a4f6 build: backport NIX_ATTRS_*_FILE
This was originally added in #4770 to support structured attrs in
`nix-shell` & `nix develop`: the issue was that it was somewhat awkward
to just write those files into a project directory, especially since
it'd break in case of multiple `nix-shell` invocations from the same
directory. Now the files are written to another, temporary
location when using `nix-shell`/`nix develop` and the correct path is
referenced by NIX_ATTRS_*_FILE.

In `nixpkgs`, it's now common to use these environment variables,
however we still fall back to checking to `.attrs.sh` & `.attrs.json`
since the minimum Nix version we support is 2.3.17[1] which doesn't have
this change.

This however makes implementing structured attrs support more
complicated than needed[2] and in fact we have a few places where the
check for `.attrs.sh`/`.attrs.json` isn't made, so these only break with
Nix 2.3[3].

The idea is now to

* get this into 2.3.18
* bump minver once again to 2.3.18 in nixpkgs
* remove all occurrences of `.attrs.sh`/`.attrs.json` from nixpkgs.

[1] f4bd97b8fa/lib/minver.nix
[2] https://github.com/NixOS/nixpkgs/pull/357053/files#diff-791a01ef89c157eb74d9c87ab8cbc3b81e2cf082cab70b8fec3472cd75ce860dR3-R5
[3] https://github.com/NixOS/nixpkgs/pull/357053#discussion_r1857362490
2024-12-08 15:45:05 +01:00
..
2018-05-30 13:28:01 +02:00
2024-03-07 14:27:23 +01:00
2018-08-06 14:06:54 +02:00
2017-05-02 15:46:10 +02:00
2014-08-21 21:50:19 +02:00
2024-03-07 14:27:23 +01:00
2024-03-07 14:27:23 +01:00
2021-11-30 05:33:50 +00:00
2019-08-02 10:48:15 -04:00
2016-08-10 18:05:35 +02:00
2018-02-13 14:26:19 +00:00
2018-01-16 19:23:18 +01:00
2014-08-21 21:50:19 +02:00
2018-02-03 10:08:05 +01:00
2019-09-04 12:52:54 +02:00
2014-08-21 21:50:19 +02:00
2016-09-12 13:40:07 +02:00
2019-03-10 01:50:33 +01:00
2006-07-21 13:21:43 +00:00
2018-12-13 14:30:52 +01:00
2019-03-04 18:27:45 +08:00
2019-07-25 09:44:01 -04:00
2014-08-21 21:50:19 +02:00
2021-11-30 05:33:50 +00:00
2018-02-13 14:26:19 +00:00
2018-01-16 19:23:18 +01:00
2018-01-16 19:23:18 +01:00
2016-08-10 18:05:35 +02:00
2021-06-22 11:03:51 +02:00
2018-01-16 19:23:18 +01:00
2017-11-20 18:36:36 +01:00
2018-02-25 16:40:05 -06:00
2016-04-11 16:20:15 +02:00
2021-06-23 09:37:14 +02:00
2007-08-13 13:15:02 +00:00
2016-10-19 15:19:38 +02:00
2019-07-02 11:18:36 -04:00
2012-12-04 14:47:50 +01:00