Skip to content

Commit 260cbae

Browse files
committed
remove devops shell
1 parent cd3e857 commit 260cbae

File tree

2 files changed

+1
-61
lines changed

2 files changed

+1
-61
lines changed

flake.nix

-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@
220220

221221
shell = import ./shell.nix { inherit pkgs customConfig cardano-mainnet-mirror; };
222222
devShells = {
223-
inherit (shell) devops;
224223
cluster = shell;
225224
profiled = project.profiled.shell;
226225
};

shell.nix

+1-60
Original file line numberDiff line numberDiff line change
@@ -121,68 +121,9 @@ let
121121
'';
122122
};
123123

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-
};
183124

184125
dev = project.shell;
185126

186127
in
187128

188-
shell // { inherit devops; inherit dev;}
129+
shell // { inherit dev;}

0 commit comments

Comments
 (0)