forked from IntersectMBO/plutus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.nix
16 lines (15 loc) · 821 Bytes
/
release.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ supportedSystems ? [ "x86_64-linux" "x86_64-darwin" ]
# Passed in by Hydra depending on the configuration, contains the revision and the out path
, plutus ? null
, rootsOnly ? false
# We explicitly pass true here in the GitHub action but don't want to slow down hydra
, checkMaterialization ? false
}:
let
inherit (import ./nix/lib/ci.nix) stripAttrsForHydra filterDerivations derivationAggregate;
ci = import ./ci.nix { inherit supportedSystems rootsOnly checkMaterialization; };
# ci.nix is a set of attributes that work fine as jobs (albeit in a slightly different structure, the platform comes
# first), but we mainly just need to get rid of some extra attributes.
ciJobsets = stripAttrsForHydra (filterDerivations ci);
in
ciJobsets // { required = derivationAggregate "required-plutus" ciJobsets; }