using Nix language version istead would help third-party evaluators

This commit is contained in:
Valentin Gagarin 2022-12-16 11:36:51 +01:00
parent bb73166eb1
commit c6d692c6eb

View file

@ -61,7 +61,9 @@ where `<version>` is a released version of Nix the given file is intended to wor
- Use the output of [`builtins.langVersion`] for specifying the version of the Nix language. - Use the output of [`builtins.langVersion`] for specifying the version of the Nix language.
* (+) This would serve other Nix language evaluators which are not and should not be tied to the rest of Nix.
* (-) `builtins.langVersion` is currently only internal and undocumented. * (-) `builtins.langVersion` is currently only internal and undocumented.
* (+) Documentation is easy to add.
* (-) Requires adding another built-in or command line option to the public API. * (-) Requires adding another built-in or command line option to the public API.
* (-) Using a language feature requires an additional steps from users to determine the current version. * (-) Using a language feature requires an additional steps from users to determine the current version.
* (+) We can add a command line option such that it is not more effort than `nix --version`. * (+) We can add a command line option such that it is not more effort than `nix --version`.