From a05b5817834f553f8eae560c58fed02a59af42b9 Mon Sep 17 00:00:00 2001 From: Artturin Date: Tue, 10 May 2022 23:38:30 +0300 Subject: [PATCH] stdenv: warn about use of stdenv.glibc TODO was added in https://github.com/NixOS/nixpkgs/pull/34645/commits/119920faa6717f8075e0ea44553203171a71f9ea --- pkgs/stdenv/linux/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/stdenv/linux/default.nix b/pkgs/stdenv/linux/default.nix index ace0d704b721..64c21fa105d4 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;