-
Notifications
You must be signed in to change notification settings - Fork 2
/
flake.nix
104 lines (100 loc) · 2.94 KB
/
flake.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
inputs = {
nixpkgs = {
url = "github:NixOS/nixpkgs/nixos-unstable";
};
# Cardano-node
# FIXME: dots not allowed in `.follows.` statements
"cardano-node-92" = {
url = "github:intersectmbo/cardano-node?ref=9.2.1";
};
"cardano-node-9.2.1".follows = "cardano-node-92";
"cardano-configurations-9.2.1" = {
# This version is compatible with cardano-node above and likely needs to be updated together.
url = "github:input-output-hk/cardano-configurations/7969a73e5c7ee1f3b2a40274b34191fdd8de170b";
flake = false;
};
# Services
cardano-db-sync = {
url = "github:intersectmbo/cardano-db-sync/13.3.0.0"; # compatible with cardano-node 9.2.1
# Following cardano-node's haskell-nix and CHaP, it fix build issue with download from ci.zw3rk
inputs.haskellNix.follows = "cardano-node-92/haskellNix";
inputs.CHaP.follows = "cardano-node-92/CHaP";
};
blockfrost = {
url = "github:blockfrost/blockfrost-backend-ryo/v2.1.0"; # compatible with cardano-db-sync 13.3.0.0
};
oura = {
url = "github:txpipe/oura/v1.9.1";
inputs.crane.follows = "crane";
};
crane = {
url = "github:ipetkov/crane";
inputs.nixpkgs.follows = "nixpkgs";
};
# Utilities
devour-flake = {
url = "github:srid/devour-flake";
flake = false;
};
devshell = {
url = "github:numtide/devshell";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-parts = {
url = "github:hercules-ci/flake-parts";
};
flake-root = {
url = "github:srid/flake-root";
};
hercules-ci-effects = {
url = "github:mlabs-haskell/hercules-ci-effects/push-cache-effect";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-parts.follows = "flake-parts";
};
pre-commit-hooks-nix = {
url = "github:cachix/pre-commit-hooks.nix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs-stable.follows = "nixpkgs";
};
treefmt-nix = {
url = "github:numtide/treefmt-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs @ {flake-parts, ...}:
flake-parts.lib.mkFlake
{inherit inputs;}
{
imports = [
./checks
./ci
./configurations
./docs
./formatter
./modules
./shell
./tests
./packages
];
flake.templates = {
default = {
path = ./templates/default;
description = "Example flake using cardano.nix";
};
cluster = {
path = ./templates/cluster;
description = "Example flake for deploying a cardano.nix cluster with multiple nodes, load balancer and monitoring";
};
};
systems = [
"x86_64-linux"
# cardano-node doesn't support it
# "aarch64-linux"
# ogmios doesn't support it
# "x86_64-darwin"
# we don't have a builder
# "aarch64-darwin"
];
};
}