From 8ac12754cecbfffadeb97178a32584f9342df04b Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Sat, 13 Sep 2025 05:47:22 -0700 Subject: [PATCH] pkgs/top-level/metrics.nix: turn off aliases in the evaluation This mirrors `ci/eval` and also prevents many warnings from being logged. --- pkgs/top-level/metrics.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/top-level/metrics.nix b/pkgs/top-level/metrics.nix index 26ef31c4a1d8..fe9437572e93 100644 --- a/pkgs/top-level/metrics.nix +++ b/pkgs/top-level/metrics.nix @@ -201,4 +201,11 @@ stdenvNoCC.mkDerivation { exit_status = "%x"; command = "%C"; }; + + # Don't allow aliases anywhere in Nixpkgs for the metrics. + env.NIXPKGS_CONFIG = builtins.toFile "nixpkgs-config.nix" '' + { + allowAliases = false; + } + ''; }