|
16 | 16 |
|
17 | 17 | processes = {
|
18 | 18 | prepare-devnet = {
|
19 |
| - # Run with Nix-provided bash to avoid shebang/env issues in sandboxes |
20 | 19 | working_dir = ".";
|
21 | 20 | command = ''
|
22 | 21 | ${pkgs.bash}/bin/bash ${self}/demo/prepare-devnet.sh
|
23 | 22 | '';
|
24 | 23 | };
|
25 | 24 | cardano-node = {
|
26 |
| - # Ensure relative paths resolve against the same directory as prepare-devnet |
27 | 25 | working_dir = ".";
|
28 | 26 | command = ''
|
29 | 27 | ${pkgs.cardano-node}/bin/cardano-node run \
|
|
39 | 37 | depends_on."prepare-devnet".condition = "process_completed";
|
40 | 38 | };
|
41 | 39 | seed-devnet = {
|
42 |
| - # Needs the same working directory as prepare-devnet to find devnet files |
43 | 40 | working_dir = ".";
|
44 | 41 | command = ''
|
45 | 42 | ${self}/demo/seed-devnet.sh ${pkgs.cardano-cli}/bin/cardano-cli ${self'.packages.hydra-node}/bin/hydra-node
|
|
53 | 50 | checkPhase = ""; # not shellcheck and choke on sourcing .env
|
54 | 51 | text = ''
|
55 | 52 | # (Re-)Export all variables from .env
|
56 |
| - set -a; [ -f .env ] && source .env; set +a |
| 53 | + set -a; [ -f .env ] && source .env; set +a |
57 | 54 | ${self'.packages.hydra-node}/bin/hydra-node \
|
58 | 55 | --node-id 1 \
|
59 | 56 | --listen 127.0.0.1:5001 \
|
|
86 | 83 | checkPhase = ""; # not shellcheck and choke on sourcing .env
|
87 | 84 | text = ''
|
88 | 85 | # (Re-)Export all variables from .env
|
89 |
| - set -a; [ -f .env ] && source .env; set +a |
| 86 | + set -a; [ -f .env ] && source .env; set +a |
90 | 87 | ${self'.packages.hydra-node}/bin/hydra-node \
|
91 | 88 | --node-id 2 \
|
92 | 89 | --listen 127.0.0.1:5002 \
|
|
119 | 116 | checkPhase = ""; # not shellcheck and choke on sourcing .env
|
120 | 117 | text = ''
|
121 | 118 | # (Re-)Export all variables from .env
|
122 |
| - set -a; [ -f .env ] && source .env; set +a |
| 119 | + set -a; [ -f .env ] && source .env; set +a |
123 | 120 | ${self'.packages.hydra-node}/bin/hydra-node \
|
124 | 121 | --node-id 3 \
|
125 | 122 | --listen 127.0.0.1:5003 \
|
|
0 commit comments