-
Notifications
You must be signed in to change notification settings - Fork 4
/
flake.nix
85 lines (72 loc) · 1.86 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
{
description = "Nix development dependencies for ibc-rs";
inputs = {
nixpkgs.url = github:nixos/nixpkgs/nixpkgs-unstable;
rust-overlay.url = github:oxalica/rust-overlay;
flake-utils.url = github:numtide/flake-utils;
cosmos-nix.url = github:informalsystems/cosmos.nix;
cosmwasm-ibc-src = {
url = github:informalsystems/cosmwasm-ibc;
flake = false;
};
celestia-app-src = {
flake = false;
url = github:celestiaorg/celestia-app/v1.13.0;
};
celestia-node-src = {
flake = false;
url = github:celestiaorg/celestia-node/v0.14.1;
};
};
outputs = inputs: let
utils = inputs.flake-utils.lib;
in
utils.eachSystem
[
"aarch64-linux"
"aarch64-darwin"
"x86_64-darwin"
"x86_64-linux"
]
(system: let
nixpkgs = import inputs.nixpkgs {
inherit system;
overlays = [
inputs.rust-overlay.overlays.default
];
};
cosmos-nix = inputs.cosmos-nix.packages.${system};
tendermint-wasm-client = import ./nix/tendermint-wasm-client {
inherit nixpkgs;
inherit (inputs) cosmwasm-ibc-src;
};
celestia-app = import ./nix/celestia-app.nix {
inherit nixpkgs;
inherit (inputs) celestia-app-src;
};
celestia-node = import ./nix/celestia-node.nix {
inherit nixpkgs;
inherit (inputs) celestia-node-src;
};
in {
packages = {
inherit tendermint-wasm-client celestia-app celestia-node;
gaia = cosmos-nix.gaia18;
inherit
(nixpkgs)
protobuf
cargo-nextest
;
inherit
(cosmos-nix)
ibc-go-v7-simapp
ibc-go-v8-simapp
ibc-go-v7-wasm-simapp
ibc-go-v8-wasm-simapp
gaia18
gaia14
osmosis
;
};
});
}