Merge pull request #111284 from siraben/remove-new-stdenv-lib

stdenv: warn about use of inherited lib
This commit is contained in:
John Ericson
2021-01-30 22:28:05 -05:00
committed by GitHub
5 changed files with 27 additions and 14 deletions
+6 -3
View File
@@ -152,9 +152,12 @@ let
inherit lib config stdenv;
}) mkDerivation;
# For convenience, bring in the library functions in lib/ so
# packages don't have to do that themselves.
inherit lib;
# Slated for deprecation in 21.11
lib = builtins.trace
( "Warning: `stdenv.lib` is deprecated 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;