Files
lix/tests
Maximilian Bosch 3b5429aec1 Source complete env in nix-shell with __structuredAttrs = true;
This is needed to push the adoption of structured attrs[1] forward. It's
now checked if a `__json` exists in the environment-map of the derivation
to be openend in a `nix-shell`.

Derivations with structured attributes enabled also make use of a file
named `.attrs.json` containing every environment variable represented as
JSON which is useful for e.g. `exportReferencesGraph`[2]. To
provide an environment similar to the build sandbox, `nix-shell` now
adds a `.attrs.json` to `cwd` (which is mostly equal to the one in the
build sandbox) and removes it using an exit hook when closing the shell.

To avoid leaking internals of the build-process to the `nix-shell`, the
entire logic to generate JSON and shell code for structured attrs was
moved into the `ParsedDerivation` class.

[1] https://nixos.mayflower.consulting/blog/2020/01/20/structured-attrs/
[2] https://nixos.org/manual/nix/unstable/expressions/advanced-attributes.html#advanced-attributes
2021-06-22 19:15:57 +02:00
..
2020-04-14 18:45:06 +02:00
2020-03-30 15:30:19 +02:00
2019-12-13 19:05:26 +01:00
2014-08-21 21:50:19 +02:00
2021-03-16 14:21:41 +01:00
2016-08-10 18:05:35 +02:00
2018-02-13 14:26:19 +00:00
2020-07-30 16:38:04 -05:00
2018-02-03 10:08:05 +01:00
2020-08-25 14:06:01 +02:00
2019-03-10 01:50:33 +01:00
2020-10-17 23:34:38 +02:00
2006-07-21 13:21:43 +00:00
2021-02-05 12:18:11 +01:00
2020-08-24 18:54:16 +02:00
2020-07-17 15:50:53 -04:00
2021-01-21 11:02:09 +01:00
2020-07-23 18:26:48 +02:00
2020-07-30 16:38:04 -05:00
2018-01-16 19:23:18 +01:00
2019-11-26 20:12:15 +01:00
2020-10-17 23:34:38 +02:00
2018-01-16 19:23:18 +01:00
2019-11-27 00:05:30 +01:00
2018-02-25 16:40:05 -06:00
2020-04-20 15:27:09 +02:00
2016-04-11 16:20:15 +02:00
2020-10-17 23:34:38 +02:00
2020-05-01 12:17:53 +02:00
2021-03-31 08:30:12 +02:00
2007-08-13 13:15:02 +00:00
2019-07-02 11:18:36 -04:00
2012-12-04 14:47:50 +01:00
2021-04-09 23:13:08 +02:00