Merge pull request #112717 from siraben/stdenv-lib-warning
stdenv/generic: recommend lib instead of pkgs.lib in place of stdenv.lib
This commit is contained in:
commit
45883c4df9
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user