Merge pull request #125494 from siraben/remove-stdenv-lib

master
Sandro 2021-06-05 16:16:28 +02:00 committed by GitHub
commit c3f5d24b8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 10 deletions

View File

@ -183,9 +183,6 @@
- Arguments should be listed in the order they are used, with the exception of `lib`, which always goes first.
- The top-level `lib` must be used in the master and 21.05 branch over its alias `stdenv.lib` as it now causes evaluation errors when aliases are disabled which is the case for ofborg.
`lib` is unrelated to `stdenv`, and so `stdenv.lib` should only be used as a convenience alias when developing locally to avoid having to modify the function inputs just to test something out.
## Package naming {#sec-package-naming}
The key words _must_, _must not_, _required_, _shall_, _shall not_, _should_, _should not_, _recommended_, _may_, and _optional_ in this section are to be interpreted as described in [RFC 2119](https://tools.ietf.org/html/rfc2119). Only _emphasized_ words are to be interpreted in this way.

View File

@ -159,13 +159,6 @@ let
inherit lib config stdenv;
}) mkDerivation;
# 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 `lib` instead."
+ " For more information see https://github.com/NixOS/nixpkgs/issues/108938")
lib else throw "`stdenv.lib` is a deprecated alias for `lib`";
inherit fetchurlBoot;
inherit overrides;