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:
John Ericson 2021-02-11 11:38:54 -05:00 committed by GitHub
commit 45883c4df9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,9 +155,9 @@ let
# Slated for removal in 21.11
lib = if config.allowAliases or true then builtins.trace
( "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")
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;