forked from cerc-io/laconicd-deprecated
20 lines
647 B
Nix
20 lines
647 B
Nix
{ pkgs
|
|
, config
|
|
, ethermint ? (import ../. { inherit pkgs; })
|
|
}: rec {
|
|
start-ethermint = pkgs.writeShellScriptBin "start-ethermint" ''
|
|
# rely on environment to provide laconicd
|
|
export PATH=${pkgs.test-env}/bin:$PATH
|
|
${../scripts/start-ethermint.sh} ${config.ethermint-config} ${config.dotenv} $@
|
|
'';
|
|
start-geth = pkgs.writeShellScriptBin "start-geth" ''
|
|
export PATH=${pkgs.test-env}/bin:${pkgs.go-ethereum}/bin:$PATH
|
|
source ${config.dotenv}
|
|
${../scripts/start-geth.sh} ${config.geth-genesis} $@
|
|
'';
|
|
start-scripts = pkgs.symlinkJoin {
|
|
name = "start-scripts";
|
|
paths = [ start-ethermint start-geth ];
|
|
};
|
|
}
|