hydra-config/mateamt.nix

15 lines
459 B
Nix
Raw Normal View History

2020-07-31 23:15:39 +02:00
{ pkgs ? import <nixpkgs> {}
2019-11-15 18:39:55 +01:00
}:
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)