summary refs log tree commit diff
path: root/pkgs/stdenv
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2022-05-10 23:38:30 +0300
committerArtturin <Artturin@artturin.com>2022-05-25 15:51:20 +0300
commita05b5817834f553f8eae560c58fed02a59af42b9 (patch)
tree9031db920446cc3d2f7e3cb3e3a4bdb1ba5f2f84 /pkgs/stdenv
parentc8f971681eb73d6d85d5989a6df39976c2e3f6ef (diff)
downloadnixpkgs-a05b5817834f553f8eae560c58fed02a59af42b9.tar
nixpkgs-a05b5817834f553f8eae560c58fed02a59af42b9.tar.gz
nixpkgs-a05b5817834f553f8eae560c58fed02a59af42b9.tar.bz2
nixpkgs-a05b5817834f553f8eae560c58fed02a59af42b9.tar.lz
nixpkgs-a05b5817834f553f8eae560c58fed02a59af42b9.tar.xz
nixpkgs-a05b5817834f553f8eae560c58fed02a59af42b9.tar.zst
nixpkgs-a05b5817834f553f8eae560c58fed02a59af42b9.zip
stdenv: warn about use of stdenv.glibc
TODO was added in
https://github.com/NixOS/nixpkgs/pull/34645/commits/119920faa6717f8075e0ea44553203171a71f9ea
Diffstat (limited to 'pkgs/stdenv')
-rw-r--r--pkgs/stdenv/linux/default.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/stdenv/linux/default.nix b/pkgs/stdenv/linux/default.nix
index ace0d704b72..64c21fa105d 100644
--- a/pkgs/stdenv/linux/default.nix
+++ b/pkgs/stdenv/linux/default.nix
@@ -398,8 +398,11 @@ in
       inherit (prevStage.stdenv) fetchurlBoot;
 
       extraAttrs = {
-        # TODO: remove this!
-        inherit (prevStage) glibc;
+        # remove before 22.11
+        glibc = lib.warn
+          ( "`stdenv.glibc` is deprecated and will be removed in release 22.11."
+           + " Please use `pkgs.glibc` instead.")
+          prevStage.glibc;
 
         inherit bootstrapTools;
         shellPackage = prevStage.bash;