Merge pull request #112717 from siraben/stdenv-lib-warning
stdenv/generic: recommend lib instead of pkgs.lib in place of stdenv.lib
commit45883c4df957bcb77630748d9acb5b1c77bbf206
authorJohn Ericson <git@JohnEricson.me>
dateThu 11 Feb 2021, 11:38 (6 years ago)
parentff65ba74da3c5a
pkgs/stdenv/generic/default.nix+2−2
@@ -155,9 +155,9 @@ let
155155 # Slated for removal in 21.11
156156 lib = if config.allowAliases or true then builtins.trace
157157 ( "Warning: `stdenv.lib` is deprecated and will be removed in the next release."
158− + " Please use `pkgs.lib` instead."
158+ + " Please use `lib` instead."
159159 + " For more information see https://github.com/NixOS/nixpkgs/issues/108938")
160− lib else throw "`stdenv.lib` is a deprecated alias for `pkgs.lib`";
160+ lib else throw "`stdenv.lib` is a deprecated alias for `lib`";
161161
162162 inherit fetchurlBoot;
163163