From 6c8db6ffc1980e05f990b4de023e24b2c8a041e4 Mon Sep 17 00:00:00 2001 From: Astro Date: Fri, 31 Jul 2020 23:28:06 +0200 Subject: [PATCH] mateamt: build for all the ghc versions again --- mateamt.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/mateamt.nix b/mateamt.nix index 6818e88..1be9289 100644 --- a/mateamt.nix +++ b/mateamt.nix @@ -1,5 +1,14 @@ { pkgs ? import {} }: -{ - mateamt = pkgs.lib.hydraJob (pkgs.haskellPackages.callPackage {}); -} +let + ghcVersions = + builtins.filter (p: + p == "ghcHEAD" || builtins.match "ghc[[:digit:]]+" p != null + ) (builtins.attrNames pkgs.haskell.packages); + mateamt = haskellPackages: haskellPackages.callPackage {}; +in +builtins.listToAttrs + (map (ghcVersion: { + name = "mateamter-${ghcVersion}"; + value = pkgs.lib.hydraJob (mateamt (builtins.getAttr ghcVersion pkgs.haskell.packages)); + }) ghcVersions)