diff options
author | John Ericson <Ericson2314@Yahoo.com> | 2017-02-09 16:09:47 -0500 |
---|---|---|
committer | John Ericson <Ericson2314@Yahoo.com> | 2017-04-17 17:13:01 -0400 |
commit | 8c99aab3ea4a9ddbd3918282da7861e674b4e7c4 (patch) | |
tree | 5c8a663c775e02ad7c7c714d89095f3cd500e0a0 /pkgs/top-level/release-lib.nix | |
parent | fffcee35f9b2042d4edc5dccb3379972e03ffd84 (diff) |
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
Diffstat (limited to 'pkgs/top-level/release-lib.nix')
-rw-r--r-- | pkgs/top-level/release-lib.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/top-level/release-lib.nix b/pkgs/top-level/release-lib.nix index a5fdb9522060..edb760939cb3 100644 --- a/pkgs/top-level/release-lib.nix +++ b/pkgs/top-level/release-lib.nix @@ -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. */ |