forked from paritytech/zombienet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
25 lines (25 loc) · 922 Bytes
/
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
{
description =
"ZombieNet aim to be a testing framework for substrate based blockchains, providing a simple cli tool that allow users to spawn and test ephemeral Substrate based networks";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";
flake-parts = {
url = "github:hercules-ci/flake-parts";
};
};
outputs = inputs@{ self, flake-parts, ... }:
# we used flake-parts to iterate over system and also to ensure nix dev scales
let
outputs = (flake-parts.lib.mkFlake { inherit inputs; } {
imports = [ ./flake-module.nix ];
systems =
[ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ];
});
in
outputs // {
# conventional injecting so that can access via `pkgs.zombinet` for usage in other flakes
overlays.default = final: prev: {
zombienet = outputs.packages.${prev.system};
};
};
}