-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
35 lines (27 loc) · 848 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
26
27
28
29
30
31
32
33
34
35
{
description = "Local Cardano devnet";
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
nixpkgs.follows = "cardano-node/nixpkgs";
cardano-node.url = "github:IntersectMBO/cardano-node?ref=10.1.4";
};
outputs = inputs@{ flake-parts, ... }: {
flakeModule = ./cardano-devnet.nix;
} //
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ];
imports = [ ./cardano-devnet.nix ];
debug = true;
perSystem = { pkgs, config, ... }: {
cardano-devnet.initialFunds = {
"609783be7d3c54f11377966dfabc9284cd6c32fca1cd42ef0a4f1cc45b" = 900000000000;
};
devShells.default = pkgs.mkShell
{
buildInputs = [
config.packages.cardano-devnet
];
};
};
};
}