Skip to content

Commit

Permalink
Revert "Refactoring: Inline optionalString"
Browse files Browse the repository at this point in the history
This reverts commit 24cccdc.
  • Loading branch information
fmaste committed Jun 24, 2022
1 parent 0b4ba0c commit 623f6aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nix/workbench/shell.nix
Expand Up @@ -8,13 +8,15 @@
}:

let
inherit (lib) optionalString;

shellHook = ''
echo 'workbench shellHook: workbenchDevMode=${toString workbenchDevMode} useCabalRun=${toString useCabalRun} profileName=${profileName}'
export WORKBENCH_BACKEND=supervisor
export WORKBENCH_SHELL_PROFILE_DIR=${profile}
export WORKBENCH_SHELL_PROFILE=${profileName}
${lib.optionalString
${optionalString
workbenchDevMode
''
export WORKBENCH_CARDANO_NODE_REPO_ROOT=$(git rev-parse --show-toplevel)
Expand All @@ -26,7 +28,7 @@ let
export -f wb
''}
${lib.optionalString
${optionalString
useCabalRun
''
. nix/workbench/lib.sh
Expand Down

0 comments on commit 623f6aa

Please sign in to comment.