forked from cardano-foundation/cardano-rosetta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.nix
30 lines (27 loc) · 833 Bytes
/
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
############################################################################
#
# Hydra release jobset.
#
# The purpose of this file is to select jobs defined in default.nix and map
# them to all supported build platforms.
#
############################################################################
{
cardano-rosetta ? { rev = null; },
system ? builtins.currentSystem,
}:
let
sources = import ./nix/sources.nix;
pkgs = import ./nix/pkgs.nix { inherit system; };
in
pkgs.lib.fix (self: {
inherit ( import ./. { inherit system; } ) cardano-rosetta-server;
build-version = pkgs.writeText "version.json" (builtins.toJSON { inherit (cardano-rosetta) rev; });
required = pkgs.releaseTools.aggregate {
name = "required";
constituents = with self; [
build-version
cardano-rosetta-server
];
};
})