doc/contributing: clarify stdenv.lib deprecation
commit226b043cefeddd689652f2e8f8d63016ea0a3fdc
authorSandro <sandro.jaeckel@gmail.com>
dateFri 30 Apr 2021, 11:05 (6 years ago)
parente2d36db
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