Skip to content

Commit cc7e7ad

Browse files
author
Damon Chen
committed
Source dotenv in the scripts
1 parent 34723f3 commit cc7e7ad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nix/scripts.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,23 @@
77
}: rec {
88
start-chainmain = pkgs.writeShellScriptBin "start-chainmain" ''
99
export PATH=${pkgs.pystarport}/bin:${chainmain}/bin:$PATH
10+
source ${config.dotenv}
1011
${../scripts/start-chainmain} ${config.chainmain-config} $@
1112
'';
1213
start-cronos = pkgs.writeShellScriptBin "start-cronos" ''
1314
# rely on environment to provide cronosd
1415
export PATH=${pkgs.pystarport}/bin:$PATH
16+
source ${config.dotenv}
1517
${../scripts/start-cronos} ${config.cronos-config} $@
1618
'';
1719
start-geth = pkgs.writeShellScriptBin "start-geth" ''
1820
export PATH=${pkgs.go-ethereum}/bin:$PATH
21+
source ${config.dotenv}
1922
${../scripts/start-geth} ${config.geth-genesis} $@
2023
'';
2124
start-hermes = pkgs.writeShellScriptBin "start-hermes" ''
2225
export PATH=${hermes}/bin:$PATH
26+
source ${config.dotenv}
2327
${../scripts/start-hermes} ${config.hermes-config} $@
2428
'';
2529
start-scripts = pkgs.symlinkJoin {

0 commit comments

Comments
 (0)