mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
The method tested for in the previous commit is now deprecated. Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
691 B
691 B
| synopsis | prs | |
|---|---|---|
| Deprecate manually making structured attrs with `__json = ...;` |
|
The proper way to create a derivation using structured attrs in the Nix language is by using __structuredAttrs = true with builtins.derivation.
However, by exploiting how structured attrs are implementated, it has also been possible to create them by setting the __json environment variable to a serialized JSON string.
This sneaky alternative method is now deprecated, and may be disallowed in future versions of Nix.