top-level/aliases: abort evaluation on check error (#427737)

This commit is contained in:
Wolfgang Walther
2025-07-23 13:41:36 +00:00
committed by GitHub
+1 -1
View File
@@ -208,7 +208,7 @@ let
# Make sure that we are not shadowing something from all-packages.nix.
checkInPkgs =
n: alias:
if builtins.hasAttr n super then throw "Alias ${n} is still in all-packages.nix" else alias;
if builtins.hasAttr n super then abort "Alias ${n} is still in all-packages.nix" else alias;
mapAliases =
aliases: lib.mapAttrs (n: alias: removeRecurseForDerivations (checkInPkgs n alias)) aliases;