File tree 3 files changed +16
-169
lines changed
3 files changed +16
-169
lines changed Original file line number Diff line number Diff line change @@ -88,16 +88,10 @@ final: prev: with final; {
88
88
# See https://input-output-hk.github.io/haskell.nix/user-guide/development/
89
89
workbench-instance =
90
90
let backendRegistry =
91
- {
92
- supervisor = {
93
- backend-workbench = ./workbench/backend/supervisor.nix ;
94
- workbench-runner = ./workbench/backend/supervisor-run.nix ;
95
- } ;
96
- nomad = {
97
- backend-workbench = ./workbench/backend/nomad.nix ;
98
- workbench-runner = ./workbench/backend/nomad-run.nix ;
99
- } ;
100
- } ;
91
+ {
92
+ supervisor = ./workbench/backend/supervisor.nix ;
93
+ nomad = ./workbench/backend/nomad.nix ;
94
+ } ;
101
95
in
102
96
{ backendName
103
97
, profileName ? customConfig . localCluster . profileName
@@ -106,10 +100,11 @@ final: prev: with final; {
106
100
, workbenchDevMode ? false
107
101
, profiled ? false
108
102
, workbench ? pkgs . workbench
109
- , backendWorkbench ? pkgs . callPackage ( backendRegistry . "${ backendName } " . backend-workbench ) { inherit useCabalRun workbench ; }
103
+ , backendWorkbench ? pkgs . callPackage ( backendRegistry . "${ backendName } " )
104
+ { inherit useCabalRun workbench ; }
110
105
, cardano-node-rev ? null
111
106
} :
112
- pkgs . callPackage ( backendRegistry . " ${ backendName } " . workbench-runner )
107
+ pkgs . callPackage ./ workbench/backend/run.nix
113
108
{
114
109
inherit batchName profileName backendWorkbench cardano-node-rev ;
115
110
} ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
let
2
- backendName = "supervisor" ;
3
2
batchNameDefault = "plain" ;
4
3
profileNameDefault = "default-bage" ;
5
4
in
16
15
let
17
16
inherit ( backendWorkbench ) workbench backend cacheDir stateDir basePort ;
18
17
18
+ backendName = backendWorkbench . backend . name ;
19
+
20
+ useCabalRun = backendWorkbench . backend . useCabalRun ;
21
+
19
22
with-backend-profile =
20
23
{ envArgsOverride ? { } } : ## TODO: envArgsOverride is not used!
21
24
workbench . with-profile
46
49
--profile ${ profile } \
47
50
--cache-dir ${ cacheDir } \
48
51
--base-port ${ toString basePort } \
49
- '' ${WB_MODE_CABAL:+ --cabal} \
52
+ ${ pkgs . lib . optionalString useCabalRun '' --cabal \'' }
50
53
"$@"
51
54
'' ;
52
55
86
89
moreutils
87
90
nixWrapped
88
91
pstree
89
- python3Packages . supervisor
90
92
workbench . workbench
91
93
zstd
92
- ] ;
94
+ ]
95
+ ++
96
+ backendWorkbench . backend . extraShellPkgs
97
+ ;
93
98
}
94
99
''
95
100
mkdir -p $out/{cache,nix-support}
You can’t perform that action at this time.
0 commit comments