diff options
author | Ben Siraphob <bensiraphob@gmail.com> | 2021-01-31 18:38:15 +0700 |
---|---|---|
committer | Ben Siraphob <bensiraphob@gmail.com> | 2021-01-31 18:40:19 +0700 |
commit | 66e92385b994a9758e69853618544bfa9f1b1800 (patch) | |
tree | 8d49e2ca0cbb5436cd2791f53d022cc5caddcf9d | |
parent | db73e7a177b8736388e5270c629399a3c89c9b53 (diff) | |
download | nixlib-66e92385b994a9758e69853618544bfa9f1b1800.tar nixlib-66e92385b994a9758e69853618544bfa9f1b1800.tar.gz nixlib-66e92385b994a9758e69853618544bfa9f1b1800.tar.bz2 nixlib-66e92385b994a9758e69853618544bfa9f1b1800.tar.lz nixlib-66e92385b994a9758e69853618544bfa9f1b1800.tar.xz nixlib-66e92385b994a9758e69853618544bfa9f1b1800.tar.zst nixlib-66e92385b994a9758e69853618544bfa9f1b1800.zip |
stdenv/generic: throw when using stdenv.lib and disallowing aliases
-rw-r--r-- | pkgs/stdenv/generic/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/stdenv/generic/default.nix b/pkgs/stdenv/generic/default.nix index 52d57a6decee..139c9212b584 100644 --- a/pkgs/stdenv/generic/default.nix +++ b/pkgs/stdenv/generic/default.nix @@ -153,11 +153,11 @@ let }) mkDerivation; # Slated for deprecation in 21.11 - lib = builtins.trace + lib = if config.allowAlises then 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; + lib else throw "`stdenv.lib` is a deprecated alias for `pkgs.lib`"; inherit fetchurlBoot; |