|
121 | 121 | '';
|
122 | 122 | };
|
123 | 123 |
|
124 |
| - devops = |
125 |
| - let cluster = pkgs.supervisord-workbench-for-profile |
126 |
| - { profileName = "devops-bage"; |
127 |
| - useCabalRun = false; |
128 |
| - }; |
129 |
| - in project.shellFor { |
130 |
| - name = "devops-shell"; |
131 |
| - |
132 |
| - packages = _: []; |
133 |
| - |
134 |
| - nativeBuildInputs = with cardanoNodePackages; [ |
135 |
| - nixWrapped |
136 |
| - cardano-cli |
137 |
| - bech32 |
138 |
| - cardano-ping |
139 |
| - cardano-node |
140 |
| - pkgs.graphviz |
141 |
| - python3Packages.supervisor |
142 |
| - python3Packages.ipython |
143 |
| - cluster.interactive-start |
144 |
| - cluster.interactive-stop |
145 |
| - cluster.interactive-restart |
146 |
| - cardanolib-py |
147 |
| - cluster.workbench.workbench |
148 |
| - pstree |
149 |
| - pkgs.time |
150 |
| - ]; |
151 |
| - |
152 |
| - shellHook = '' |
153 |
| - echo "DevOps Tools" \ |
154 |
| - | ${figlet}/bin/figlet -f banner -c \ |
155 |
| - | ${lolcat}/bin/lolcat |
156 |
| -
|
157 |
| - ${with customConfig.localCluster; |
158 |
| - (import ./nix/workbench/shell.nix { inherit lib workbenchDevMode profileName; useCabalRun = false; }).shellHook} |
159 |
| -
|
160 |
| - # Socket path default to first node launched by "start-cluster": |
161 |
| - export CARDANO_NODE_SOCKET_PATH=$(wb backend get-node-socket-path ${cluster.stateDir}) |
162 |
| -
|
163 |
| - ${setLocale} |
164 |
| -
|
165 |
| - # Unless using specific network: |
166 |
| - ${lib.optionalString (__hasAttr "network" customConfig) '' |
167 |
| - export CARDANO_NODE_SOCKET_PATH="$PWD/state-node-${customConfig.network}/node.socket" |
168 |
| - ${lib.optionalString (__hasAttr "utxo" pkgs.commonLib.cardanoLib.environments.${customConfig.network}) '' |
169 |
| - # Selfnode and other test clusters have public secret keys that we pull from iohk-nix |
170 |
| - echo "To access funds use UTXO_SKEY and UTXO_VKEY environment variables" |
171 |
| - export UTXO_SKEY="${pkgs.commonLib.cardanoLib.environments.${customConfig.network}.utxo.signing}" |
172 |
| - export UTXO_VKEY="${pkgs.commonLib.cardanoLib.environments.${customConfig.network}.utxo.verification}" |
173 |
| - ''} |
174 |
| -
|
175 |
| - ''} |
176 |
| -
|
177 |
| - echo "NOTE: you may need to use a github access token if you hit rate limits with nix flake update:" |
178 |
| - echo ' edit ~/.config/nix/nix.conf and add line `access-tokens = "github.com=23ac...b289"`' |
179 |
| - ${commandHelp} |
180 |
| -
|
181 |
| - ''; |
182 |
| - }; |
183 | 124 |
|
184 | 125 | dev = project.shell;
|
185 | 126 |
|
186 | 127 | in
|
187 | 128 |
|
188 |
| - shell // { inherit devops; inherit dev;} |
| 129 | + shell // { inherit dev;} |
0 commit comments