Skip to content

Commit

Permalink
global: a naoive complete evaluation will fail, make it fail faster
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
7c6f434c committed Sep 30, 2017
1 parent 8f40840 commit df812e3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -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

Expand Down

0 comments on commit df812e3

Please sign in to comment.