forked from ComposableFi/composable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
92 lines (85 loc) · 3.2 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
{
description = "Composable Finance";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
# remove me when the `nixops_unstable` works again on the latest unstable
nixpkgs-working-nixops.url =
"github:NixOS/nixpkgs/34c5293a71ffdb2fe054eb5288adc1882c1eb0b1/";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-utils.url = "github:numtide/flake-utils";
npm-buildpackage.url = "github:serokell/nix-npm-buildpackage";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
crane = {
url = "github:ipetkov/crane";
inputs.nixpkgs.follows = "nixpkgs";
};
arion-src = {
url = "github:hercules-ci/arion";
inputs.nixpkgs.follows = "nixpkgs";
};
helix.url = "github:helix-editor/helix";
bundlers = {
url = "github:NixOS/bundlers";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-std.url = "github:chessai/nix-std";
devenv.url = "github:cachix/devenv";
};
nixConfig = {
extra-substituters = [ "https://composable-community.cachix.org/" ];
extra-trusted-public-keys = [ "composable-community.cachix.org-1:GG4xJNpXJ+J97I8EyJ4qI5tRTAJ4i7h+NK2Z32I8sK8=" ];
};
outputs = inputs@{ self, nixpkgs, flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
# External `inputs` that the authors did not nixify themselves
./inputs/AcalaNetwork/acala.nix
./inputs/bifrost-finance/bifrost/flake-module.nix
./inputs/centauri/flake-module.nix
./inputs/chevdor/subwasm.nix
./flake/subxt.nix
./inputs/CosmosContracts/juno.nix
./inputs/cosmos/cosmwasm.nix
./inputs/cosmos/gex.nix
./inputs/CosmWasm/wasmvm.nix
./inputs/paritytech/polkadot.nix
./inputs/paritytech/statemine.nix
./inputs/paritytech/zombienet/flake-module.nix
./inputs/Wasmswap/wasmswap-contracts.nix
# The things we use within flake parts to build packages, apps, devShells, and devnets.
./tools/cargo-tools.nix # _module.args.cargoTools
./tools/devnet-tools.nix # _module.args.devnetTools
./tools/pkgs.nix # _module.args.pkgs
./tools/rust.nix # _module.args.rust
# our own packages
./code/benchmarks.nix
./code/common-deps.nix
./code/composable-nodes.nix
./code/integration-tests/local-integration-tests/flake-module.nix
./code/integration-tests/runtime-tests/runtime-tests.nix
./code/runtimes.nix
./code/services/cmc-api/cmc-api.nix
./code/utils/price-feed/price-feed.nix
./code/xcvm/xcvm-contracts.nix
./docs/docs.nix
./frontend/frontend.nix
./devnets/all.nix
# Everything that is not an input, tool, package, or devnet, but still part of the final flake
./flake/all.nix
./flake/check.nix
./flake/dev-shells.nix
./flake/docker.nix
./flake/fmt.nix
./flake/help.nix
./flake/nixops-config.nix
./flake/overlays.nix
./flake/release.nix
./flake/zombienet.nix
];
systems =
[ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ];
};
}