1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

add error context to all top level attr names of all-packages.nix

svn path=/nixpkgs/trunk/; revision=14429
This commit is contained in:
Marc Weber 2009-03-06 23:21:31 +00:00
parent b56ed35851
commit 49b115132d
2 changed files with 4 additions and 1 deletions

View file

@ -1,3 +1,5 @@
let lib = import ./default.nix; in
rec {
@ -10,6 +12,7 @@ rec {
then builtins.addErrorContext
else msg: val: val;
addErrorContextToAttrs = lib.mapAttrs (a : v : lib.addErrorContext "while evaluating ${a}" v);
}

View file

@ -9584,4 +9584,4 @@ let
};
libTests = import ../lib/tests.nix;
}; in pkgs
}; in lib.addErrorContextToAttrs pkgs