lib: Fix system parsing, and use for doubles lists

The old hard-coded lists are now used to test system parsing.

In the process, make an `assertTrue` in release lib for eval tests; also
use it in release-cross
This commit is contained in:
John Ericson
2017-04-17 17:13:01 -04:00
parent fffcee35f9
commit 8c99aab3ea
7 changed files with 238 additions and 126 deletions
+5
View File
@@ -46,6 +46,11 @@ rec {
pkgs_x86_64_cygwin = allPackages { system = "x86_64-cygwin"; };
assertTrue = bool:
if bool
then pkgs.runCommand "evaluated-to-true" {} "touch $out"
else pkgs.runCommand "evaluated-to-false" {} "false";
/* The working or failing mails for cross builds will be sent only to
the following maintainers, as most package maintainers will not be
interested in the result of cross building a package. */