stdenv: warn about use of inherited lib
This commit is contained in:
parent
9071feb01d
commit
32e8cec5d9
@ -152,9 +152,12 @@ let
|
|||||||
inherit lib config stdenv;
|
inherit lib config stdenv;
|
||||||
}) mkDerivation;
|
}) mkDerivation;
|
||||||
|
|
||||||
# For convenience, bring in the library functions in lib/ so
|
# Slated for deprecation in 21.11
|
||||||
# packages don't have to do that themselves.
|
lib = builtins.trace ( "Warning: `stdenv.lib` is deprecated "
|
||||||
inherit lib;
|
+ "and will be removed in the next release. "
|
||||||
|
+ "Please use `pkgs.lib` instead. "
|
||||||
|
+ "For more information see https://github.com/NixOS/nixpkgs/issues/108938")
|
||||||
|
lib;
|
||||||
|
|
||||||
inherit fetchurlBoot;
|
inherit fetchurlBoot;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user