hnix/release.nix

24 lines
1007 B
Nix
Raw Permalink Normal View History

2018-11-17 23:27:35 +01:00
{}:
let matrix = [
2019-03-10 19:06:22 +01:00
{ compiler = "ghc863"; doStrict = false; doTracing = false; }
{ compiler = "ghc863"; doStrict = false; doTracing = true; }
{ compiler = "ghc844"; doStrict = false; doTracing = false; }
{ compiler = "ghc844"; doStrict = false; doTracing = true; }
2018-11-17 23:27:35 +01:00
2018-11-18 20:29:32 +01:00
# 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; }
2018-11-17 23:27:35 +01:00
# 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)