on e94de40 help sign in
haskell.nix/release.nix
25 lines 1.1 kB history raw
1# 'supportedSystems' restricts the set of systems that we will evaluate for. Useful when you're evaluating
2# on a machine with e.g. no way to build the Darwin IFDs you need!
3{ supportedSystems ? [ "x86_64-linux" "x86_64-darwin" ]
4, ifdLevel ? 3
5, checkMaterialization ? false }:
7let
8 inherit (import ./ci-lib.nix) stripAttrsForHydra filterDerivations;
9 genericPkgs = import (import ./nix/sources.nix).nixpkgs {};
10 lib = genericPkgs.lib;
11 ci = import ./ci.nix { inherit supportedSystems ifdLevel checkMaterialization; restrictEval = true; };
12 allJobs = stripAttrsForHydra (filterDerivations ci);
13in allJobs // {
14 # On IOHK Hydra, "required" is a special job that updates the
15 # GitHub CI status.
16 required = genericPkgs.releaseTools.aggregate {
17 name = "haskell.nix-required";
18 meta.description = "All jobs required to pass CI";
19 # Hercules will require all of these, we just require the 20.03 jobs
20 # to avoid stressing Hydra too much
21 constituents = lib.collect lib.isDerivation allJobs.R2003.ghc865.linux.native;
22 };
23 }