stdenv/generic: recommend lib instead of pkgs.lib in place of stdenv.lib

This commit is contained in:
Ben Siraphob 2021-02-11 11:34:06 +07:00
parent 1bc082c26d
commit 4da3c5ab1e

View File

@ -155,9 +155,9 @@ let
# Slated for removal in 21.11 # Slated for removal in 21.11
lib = if config.allowAliases or true then builtins.trace lib = if config.allowAliases or true then builtins.trace
( "Warning: `stdenv.lib` is deprecated and will be removed in the next release." ( "Warning: `stdenv.lib` is deprecated and will be removed in the next release."
+ " Please use `pkgs.lib` instead." + " Please use `lib` instead."
+ " For more information see https://github.com/NixOS/nixpkgs/issues/108938") + " For more information see https://github.com/NixOS/nixpkgs/issues/108938")
lib else throw "`stdenv.lib` is a deprecated alias for `pkgs.lib`"; lib else throw "`stdenv.lib` is a deprecated alias for `lib`";
inherit fetchurlBoot; inherit fetchurlBoot;