forked from input-output-hk/cardano-sl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.nix
54 lines (52 loc) · 2.03 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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
iohkPkgs = import ./. { gitrev = cardano.rev; };
pkgs = import fixedNixpkgs { config = {}; };
stagingWalletdockerImage = pkgs.runCommand "${iohkPkgs.dockerImages.stagingWallet.name}-hydra" {} ''
mkdir -pv $out/nix-support/
cat <<EOF > $out/nix-support/hydra-build-products
file dockerimage ${iohkPkgs.dockerImages.stagingWallet}
EOF
'';
platforms = {
cardano-sl = supportedSystems;
cardano-sl-auxx = supportedSystems;
cardano-sl-node-static = supportedSystems;
cardano-sl-tools = supportedSystems;
cardano-sl-wallet = supportedSystems;
cardano-sl-wallet-new = supportedSystems;
cardano-sl-explorer-static = [ "x86_64-linux" ];
cardano-report-server-static = [ "x86_64-linux" ];
stack2nix = supportedSystems;
purescript = supportedSystems;
connectScripts.mainnetWallet = [ "x86_64-linux" "x86_64-darwin" ];
connectScripts.mainnetExplorer = [ "x86_64-linux" "x86_64-darwin" ];
connectScripts.stagingWallet = [ "x86_64-linux" "x86_64-darwin" ];
connectScripts.stagingExplorer = [ "x86_64-linux" "x86_64-darwin" ];
daedalus-bridge = supportedSystems;
};
nixosTests = import ./nixos-tests;
swaggerSchemaValidation = iohkPkgs.swaggerSchemaValidation;
walletIntegrationTests = iohkPkgs.buildWalletIntegrationTests;
in (mapTestOn platforms) // {
inherit stagingWalletdockerImage walletIntegrationTests swaggerSchemaValidation;
nixpkgs = let
wrapped = pkgs.runCommand "nixpkgs" {} ''
ln -sv ${fixedNixpkgs} $out
'';
in if 0 <= builtins.compareVersions builtins.nixVersion "1.12" then wrapped else fixedNixpkgs;
}