about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-06-05 16:16:28 +0200
committerGitHub <noreply@github.com>2021-06-05 16:16:28 +0200
commitc3f5d24b8d903e0b78849bc3e249f049777025ab (patch)
tree55d67f974b7ef2426a295bbea2c485c9ec3cd1e1
parent141b2b111d7aa5f8132edd0fc4f78fb2c2402ebb (diff)
parent68b5b850d512676321de635dd6c272dad6d769db (diff)
downloadnixlib-c3f5d24b8d903e0b78849bc3e249f049777025ab.tar
nixlib-c3f5d24b8d903e0b78849bc3e249f049777025ab.tar.gz
nixlib-c3f5d24b8d903e0b78849bc3e249f049777025ab.tar.bz2
nixlib-c3f5d24b8d903e0b78849bc3e249f049777025ab.tar.lz
nixlib-c3f5d24b8d903e0b78849bc3e249f049777025ab.tar.xz
nixlib-c3f5d24b8d903e0b78849bc3e249f049777025ab.tar.zst
nixlib-c3f5d24b8d903e0b78849bc3e249f049777025ab.zip
Merge pull request #125494 from siraben/remove-stdenv-lib
-rw-r--r--doc/contributing/coding-conventions.chapter.md3
-rw-r--r--pkgs/stdenv/generic/default.nix7
2 files changed, 0 insertions, 10 deletions
diff --git a/doc/contributing/coding-conventions.chapter.md b/doc/contributing/coding-conventions.chapter.md
index 6516172adde9..1eaa06a659d5 100644
--- a/doc/contributing/coding-conventions.chapter.md
+++ b/doc/contributing/coding-conventions.chapter.md
@@ -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.
diff --git a/pkgs/stdenv/generic/default.nix b/pkgs/stdenv/generic/default.nix
index 4cfdb6e4c17d..88ca1b2c7903 100644
--- a/pkgs/stdenv/generic/default.nix
+++ b/pkgs/stdenv/generic/default.nix
@@ -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;