diff options
author | Ben Siraphob <bensiraphob@gmail.com> | 2021-01-30 17:23:49 +0700 |
---|---|---|
committer | Ben Siraphob <bensiraphob@gmail.com> | 2021-01-30 18:42:48 +0700 |
commit | 32e8cec5d9be7963c3cc23541c2679a4a5989348 (patch) | |
tree | dd32b35c1eb77a5247319ccfca0293f3c0d2c40d /pkgs/stdenv/generic | |
parent | 9071feb01d79d4e9a42a485f72bc5cb325baf8dc (diff) |
stdenv: warn about use of inherited lib
Diffstat (limited to 'pkgs/stdenv/generic')
-rw-r--r-- | pkgs/stdenv/generic/default.nix | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/stdenv/generic/default.nix b/pkgs/stdenv/generic/default.nix index c7c3bb9f3f3f..125eff9aec57 100644 --- a/pkgs/stdenv/generic/default.nix +++ b/pkgs/stdenv/generic/default.nix @@ -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; |