stdenv/generic: allowAliases should default to false if unset

Mostly because config.allowAliases doesn't exist unless it's set.
This commit is contained in:
Cole Helbling 2021-02-06 19:39:40 -08:00
parent 06e13dda74
commit afbeed62bb

View File

@ -153,7 +153,7 @@ let
}) mkDerivation;
# Slated for deprecation in 21.11
lib = if config.allowAliases then builtins.trace
lib = if config.allowAliases or false 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")