add mateamt

This commit is contained in:
Astro 2019-11-15 18:39:55 +01:00
parent 30f3a0784b
commit dd8aec4637
2 changed files with 27 additions and 0 deletions

View File

@ -45,6 +45,14 @@ let
};
};
mateamt = mkJobset {
description = "Mateamt by nek0";
nixexprpath = "mateamt.nix";
gitUrls = {
mateamt = "https://github.com/nek0/mateamt.git master 1";
};
};
tigger = mkJobset {
description = "XMPP MUC bot";
nixexprpath = "tigger.nix";

19
mateamt.nix Normal file
View File

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