diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2010-08-19 12:37:10 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2010-08-19 12:37:10 +0000 |
commit | 1ac9dcd24d3c41954068f2bd2e415552cb0de7c1 (patch) | |
tree | 38b40f69c45128c27af8c5e21f0b1d132f9307b3 /maintainers | |
parent | 12bfda97b8a7387c28e30b4d458a849c4bcff58a (diff) |
* Fix eval-release.nix by testing whether all attributes of a
derivation evaluate inside the tryEval. This catches cases such as aufs2-util, which fails due to an assertion in its dependency aufs2. * Explicitly blacklist "xbursttools" because it gives some evaluation error in cross-OpenSSL. No idea why, probably due to some pass-through attribute. svn path=/nixpkgs/trunk/; revision=23247
Diffstat (limited to 'maintainers')
-rw-r--r-- | maintainers/scripts/eval-release.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/maintainers/scripts/eval-release.nix b/maintainers/scripts/eval-release.nix index 64dbbd15cf385..62607fcc497f4 100644 --- a/maintainers/scripts/eval-release.nix +++ b/maintainers/scripts/eval-release.nix @@ -6,9 +6,13 @@ let lib = (import ../.. {}).lib; - rel = removeAttrs (import ../../pkgs/top-level/release.nix) ["tarball"]; + rel = removeAttrs (import ../../pkgs/top-level/release.nix) [ "tarball" "xbursttools" ]; - maybe = x: let y = builtins.tryEval x; in if y.success then y.value else null; + strictList = xs: lib.fold (x: xs: lib.seq x xs) xs xs; + + strictAttrs = as: strictList (lib.attrValues as); + + maybe = as: let y = builtins.tryEval (strictAttrs as); in if y.success then y.value else builtins.trace "FAIL" null; call = attrs: lib.flip lib.mapAttrs attrs (n: v: builtins.trace n ( |