From df812e348774a3d241eed4632fde80f7163c7a0e Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Sat, 30 Sep 2017 14:38:39 +0200 Subject: [PATCH] global: a naoive complete evaluation will fail, make it fail faster Hopefully the message will make accidental full evaluations of NixPkgs (and their inevitable failures) easier to notice and debug. By suggestion from @grahamc (in his IRC gchristensen form) --- pkgs/top-level/all-packages.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 03a4a5fa53eb..da57a8eda064 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -55,6 +55,13 @@ with pkgs; stringsWithDeps = lib.stringsWithDeps; + ### Evaluating the entire NixPkgs naively will fail, make failure fast + AAAAAASomeThingsFailToEvaluate = throw '' + Please be informed that this pseudo-package is not the only part of + NixPkgs that fails to evaulate. You should not evaluate entire NixPkgs + without some special measures to handle failing packages, like those taken + by Hydra. + ''; ### Nixpkgs maintainer tools