From 4da3c5ab1eefa441d202cfecd36ac4dcd747d3d8 Mon Sep 17 00:00:00 2001 From: Ben Siraphob Date: Thu, 11 Feb 2021 11:34:06 +0700 Subject: [PATCH] stdenv/generic: recommend lib instead of pkgs.lib in place of stdenv.lib --- pkgs/stdenv/generic/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/stdenv/generic/default.nix b/pkgs/stdenv/generic/default.nix index 3aa8850ebee..476fab3eed6 100644 --- a/pkgs/stdenv/generic/default.nix +++ b/pkgs/stdenv/generic/default.nix @@ -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;