forked from input-output-hk/cardano-sl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.nix
39 lines (37 loc) · 1.36 KB
/
release.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
let
fixedNixpkgs = (import ./lib.nix).fetchNixPkgs;
in
{ supportedSystems ? [ "x86_64-linux" "x86_64-darwin" ]
, scrubJobs ? true
, cardano ? { outPath = ./.; rev = "abcdef"; }
, nixpkgsArgs ? {
config = { allowUnfree = false; inHydra = true; };
gitrev = cardano.rev;
}
}:
with (import (fixedNixpkgs + "/pkgs/top-level/release-lib.nix") {
inherit supportedSystems scrubJobs nixpkgsArgs;
packageSet = import ./.;
});
let
platforms = {
cardano-sl = supportedSystems;
cardano-sl-auxx = supportedSystems;
cardano-sl-node-static = supportedSystems;
cardano-sl-tools = supportedSystems;
cardano-sl-wallet = supportedSystems;
cardano-sl-explorer-static = [ "x86_64-linux" ];
cardano-report-server-static = [ "x86_64-linux" ];
stack2nix = supportedSystems;
purescript = supportedSystems;
dockerImage = [ "x86_64-linux" ];
};
connect = import ./scripts/launch/connect-to-cluster/default.nix;
connectScripts = {
mainnetWallet = connect { inherit (cardano) rev; };
mainnetExplorer = connect { inherit (cardano) rev; executable = "explorer"; };
stagingWallet = connect { inherit (cardano) rev; environment = "mainnet-staging"; };
stagingExplorer = connect { inherit (cardano) rev; executable = "explorer"; environment = "mainnet-staging"; };
};
in { connect = connectScripts; }
// mapTestOn platforms