mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
stdenv/generic: throw when using stdenv.lib and disallowing aliases
This commit is contained in:
parent
db73e7a177
commit
66e92385b9
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user