Skip to content

Commit 27779fc

Browse files
committed
Clean up
1 parent b8197a5 commit 27779fc

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

nix/hydra/demo.nix

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@
1616

1717
processes = {
1818
prepare-devnet = {
19-
# Run with Nix-provided bash to avoid shebang/env issues in sandboxes
2019
working_dir = ".";
2120
command = ''
2221
${pkgs.bash}/bin/bash ${self}/demo/prepare-devnet.sh
2322
'';
2423
};
2524
cardano-node = {
26-
# Ensure relative paths resolve against the same directory as prepare-devnet
2725
working_dir = ".";
2826
command = ''
2927
${pkgs.cardano-node}/bin/cardano-node run \
@@ -39,7 +37,6 @@
3937
depends_on."prepare-devnet".condition = "process_completed";
4038
};
4139
seed-devnet = {
42-
# Needs the same working directory as prepare-devnet to find devnet files
4340
working_dir = ".";
4441
command = ''
4542
${self}/demo/seed-devnet.sh ${pkgs.cardano-cli}/bin/cardano-cli ${self'.packages.hydra-node}/bin/hydra-node
@@ -53,7 +50,7 @@
5350
checkPhase = ""; # not shellcheck and choke on sourcing .env
5451
text = ''
5552
# (Re-)Export all variables from .env
56-
set -a; [ -f .env ] && source .env; set +a
53+
set -a; [ -f .env ] && source .env; set +a
5754
${self'.packages.hydra-node}/bin/hydra-node \
5855
--node-id 1 \
5956
--listen 127.0.0.1:5001 \
@@ -86,7 +83,7 @@
8683
checkPhase = ""; # not shellcheck and choke on sourcing .env
8784
text = ''
8885
# (Re-)Export all variables from .env
89-
set -a; [ -f .env ] && source .env; set +a
86+
set -a; [ -f .env ] && source .env; set +a
9087
${self'.packages.hydra-node}/bin/hydra-node \
9188
--node-id 2 \
9289
--listen 127.0.0.1:5002 \
@@ -119,7 +116,7 @@
119116
checkPhase = ""; # not shellcheck and choke on sourcing .env
120117
text = ''
121118
# (Re-)Export all variables from .env
122-
set -a; [ -f .env ] && source .env; set +a
119+
set -a; [ -f .env ] && source .env; set +a
123120
${self'.packages.hydra-node}/bin/hydra-node \
124121
--node-id 3 \
125122
--listen 127.0.0.1:5003 \

0 commit comments

Comments
 (0)