Skip to content

Commit

Permalink
workbench: build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
deepfire committed Mar 15, 2022
1 parent 75a0b3a commit 2151fd1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion nix/workbench/profiles/derived.jq
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def add_derived_params:
, cluster_startup_overhead_s:
(($gsis.utxo + $gsis.delegators) as $dataset_size
| if $dataset_size < 10000 then 5
else $dataset_size / 20000
else $dataset_size / 10000
end)
}
}
Expand Down
3 changes: 2 additions & 1 deletion nix/workbench/shell.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{ workbenchDevMode ? false
{ lib
, workbenchDevMode ? false
, useCabalRun ? false
, checkoutWbMode ? "unknown"
}:
Expand Down
4 changes: 2 additions & 2 deletions nix/workbench/tests/default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{ pkgs
}: let
inherit (pkgs) workbench-supervisord cardano-cli cardanolib-py cardano-node;
inherit (pkgs) supervisord-workbench-for-profile cardano-cli cardanolib-py cardano-node;
stateDir = "./state-cluster-test";
# We want a really short duration for tests
cluster' = workbench-supervisord {
cluster' = supervisord-workbench-for-profile {
genesisParams = {
slotLength = 0.1;
decentralisationParam = 0.8;
Expand Down
10 changes: 6 additions & 4 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ let
haveGlibcLocales = pkgs.glibcLocales != null && stdenv.hostPlatform.libc == "glibc";

shell =
let cluster = pkgs.workbench-supervisord
let cluster = pkgs.supervisord-workbench-for-profile
{ inherit profileName;
useCabalRun = true;
};
Expand Down Expand Up @@ -107,7 +107,8 @@ let
shellHook = ''
echo 'nix-shell top-level shellHook: withHoogle=${toString withHoogle} profileName=${profileName} autoStartCluster=${toString autoStartCluster} workbenchDevMode=${toString workbenchDevMode}'
${(import ./nix/workbench/shell.nix { inherit workbenchDevMode useCabalRun; }).shellHook}
${with customConfig.localCluster;
(import ./nix/workbench/shell.nix { inherit lib workbenchDevMode; useCabalRun = true; }).shellHook}
${lib.optionalString autoStartCluster ''
function atexit() {
Expand All @@ -133,7 +134,7 @@ let
};

devops =
let cluster = pkgs.workbench-supervisord
let cluster = pkgs.supervisord-workbench-for-profile
{ profileName = "devops-alzo";
useCabalRun = false;
};
Expand Down Expand Up @@ -171,7 +172,8 @@ let
wb explain-mode
${(import ./nix/workbench/shell.nix { inherit workbenchDevMode useCabalRun; }).shellHook}
${with customConfig.localCluster;
(import ./nix/workbench/shell.nix { inherit lib workbenchDevMode; useCabalRun = false; }).shellHook}
# Socket path default to first node launched by "start-cluster":
export CARDANO_NODE_SOCKET_PATH=$(wb backend get-node-socket-path ${cluster.stateDir})
Expand Down

0 comments on commit 2151fd1

Please sign in to comment.