From 226b043cefeddd689652f2e8f8d63016ea0a3fdc Mon Sep 17 00:00:00 2001 From: Sandro Date: Fri, 30 Apr 2021 11:05:39 +0200 Subject: doc/contributing: clarify stdenv.lib deprecation --- doc/contributing/coding-conventions.chapter.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc/contributing/coding-conventions.chapter.md') diff --git a/doc/contributing/coding-conventions.chapter.md b/doc/contributing/coding-conventions.chapter.md index eccf4f7436e..a95b600a420 100644 --- a/doc/contributing/coding-conventions.chapter.md +++ b/doc/contributing/coding-conventions.chapter.md @@ -171,7 +171,8 @@ - Arguments should be listed in the order they are used, with the exception of `lib`, which always goes first. -- 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. +- 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. + `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. ## Package naming {#sec-package-naming} -- cgit 1.4.1