diff options
author | jade <lix@jade.fyi> | 2024-05-16 21:19:15 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@lix-systems> | 2024-05-16 21:19:15 +0000 |
commit | 9322a1cbe775a32c7019a91236d9e37037b9241a (patch) | |
tree | 0469ca825f37af5a809a945683596075a64f8468 /doc | |
parent | 9249c89dc617084640848d4b429311ed3dc152d9 (diff) | |
parent | 6d84d6bdc1904b1afeecac4ee3fb492966fc882a (diff) |
Merge "builtins: fix builtins.langVersion docs to state it's deprecated" into main
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manual/rl-next/nixversion-fake.md | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/doc/manual/rl-next/nixversion-fake.md b/doc/manual/rl-next/nixversion-fake.md index 93f75611d..725b8e609 100644 --- a/doc/manual/rl-next/nixversion-fake.md +++ b/doc/manual/rl-next/nixversion-fake.md @@ -1,13 +1,17 @@ --- -synopsis: "`builtins.nixVersion` now returns a fixed value \"2.18.3-lix\"" -cls: 558 +synopsis: "`builtins.nixVersion` and `builtins.langVersion` return fixed values" +cls: [558, 1144] credits: jade category: Breaking Changes --- -`builtins.nixVersion` now returns a fixed value `"2.18.3-lix"`. This prevents -feature detection assuming that features that exist in Nix post-Lix-branch-off -might exist, even though the Lix version is greater than the Nix version. +`builtins.nixVersion` now returns a fixed value `"2.18.3-lix"`. + +`builtins.langVersion` returns a fixed value `6`, matching CppNix 2.18. + +This prevents feature detection assuming that features that exist in Nix +post-Lix-branch-off might exist, even though the Lix version is greater than +the Nix version. In the future, check for builtins for feature detection. If a feature cannot be detected by *those* means, please file a Lix bug. |