Merge pull request #121248 from SuperSandro2000/SuperSandro2000-patch-1
doc/contributing: clarify stdenv.lib deprecation
commit86f37c18b44b29eb2db15552453875a77ddccf19
authorDomen Kožar <domen@dev.si>
dateFri 30 Apr 2021, 11:47 (6 years ago)
parent849b29b226b043
doc/contributing/coding-conventions.chapter.md+2−1
@@ -171,7 +171,8 @@
171171
172172- Arguments should be listed in the order they are used, with the exception of `lib`, which always goes first.
173173
174−- Prefer using the top-level `lib` over its alias `stdenv.lib`. `lib` is unrelated to `stdenv`, and so `stdenv.lib` should only be used as a convenience alias when developing to avoid having to modify the function inputs just to test something out.
174+- The top-level `lib` must be used in the master and 21.05 branch over its alias `stdenv.lib` as it now causes evaluation errors when aliases are disabled which is the case for ofborg.
175+ `lib` is unrelated to `stdenv`, and so `stdenv.lib` should only be used as a convenience alias when developing locally to avoid having to modify the function inputs just to test something out.
175176
176177## Package naming {#sec-package-naming}
177178