mateamt: build for all the ghc versions again

This commit is contained in:
Astro 2020-07-31 23:28:06 +02:00
parent 54c77e5085
commit 6c8db6ffc1
1 changed files with 12 additions and 3 deletions

View File

@ -1,5 +1,14 @@
{ pkgs ? import <nixpkgs> {}
}:
{
mateamt = pkgs.lib.hydraJob (pkgs.haskellPackages.callPackage <mateamt> {});
}
let
ghcVersions =
builtins.filter (p:
p == "ghcHEAD" || builtins.match "ghc[[:digit:]]+" p != null
) (builtins.attrNames pkgs.haskell.packages);
mateamt = haskellPackages: haskellPackages.callPackage <mateamt> {};
in
builtins.listToAttrs
(map (ghcVersion: {
name = "mateamter-${ghcVersion}";
value = pkgs.lib.hydraJob (mateamt (builtins.getAttr ghcVersion pkgs.haskell.packages));
}) ghcVersions)