-
Notifications
You must be signed in to change notification settings - Fork 104
/
release.nix
39 lines (38 loc) · 1.21 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
############################################################################
#
# 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-graphql ? { rev = null; }
, system ? builtins.currentSystem
, pkgs ? import ./nix/pkgs.nix { inherit system; }
}:
with pkgs;
let
mkPins = inputs: runCommand "ifd-pins" {} ''
mkdir $out
cd $out
${lib.concatMapStringsSep "\n" (input: "ln -sv ${input.value} ${input.key}") (lib.attrValues (lib.mapAttrs (key: value: { inherit key value; }) inputs))}
'';
in
lib.fix (self: {
ifd-pins = mkPins {
inherit (sources) ci-info-hs graphql-engine graphql-parser-hs pg-client-hs;
};
inherit (packages) cardano-graphql hasura-cli hasura-cli-ext persistgraphql graphql-engine;
build-version = writeText "version.json" (builtins.toJSON { inherit (cardano-graphql) rev; });
required = releaseTools.aggregate {
name = "required";
constituents = with self; [
self.cardano-graphql
graphql-engine
hasura-cli
hasura-cli-ext
persistgraphql
build-version
];
};
})