-
Notifications
You must be signed in to change notification settings - Fork 1
/
release.nix
23 lines (19 loc) · 1007 Bytes
/
release.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{}:
let matrix = [
{ compiler = "ghc863"; doStrict = false; doTracing = false; }
{ compiler = "ghc863"; doStrict = false; doTracing = true; }
{ compiler = "ghc844"; doStrict = false; doTracing = false; }
{ compiler = "ghc844"; doStrict = false; doTracing = true; }
# Broken
# { compiler = "ghc802"; doStrict = false; doTracing = false; }
# { compiler = "ghc802"; doStrict = false; doTracing = true; }
# Deprecated
# { compiler = "ghc822"; doStrict = true; doTracing = false; }
# { compiler = "ghc822"; doStrict = true; doTracing = true; }
# Broken
# { compiler = "ghcjs"; doStrict = false; doTracing = false; }
];
boolToString = x: if x then "true" else "false";
nameForConfig = {compiler, doStrict, doTracing}: builtins.concatStringsSep "-"
[ compiler (boolToString doStrict) (boolToString doTracing) ];
in builtins.listToAttrs (map (args: { name = nameForConfig args; value = import ./. args; }) matrix)