File tree 1 file changed +6
-18
lines changed
1 file changed +6
-18
lines changed Original file line number Diff line number Diff line change 5
5
, backend
6
6
7
7
, profileName
8
- , profileOverride ? { }
9
8
} :
10
9
11
10
let
12
- baseJSON = runWorkbenchJqOnly "profile-${ profileName } .json"
13
- "profile json ${ profileName } " ;
14
- JSON =
15
- if profileOverride == { }
16
- then baseJSON
17
- else
18
- runJq "profile-${ profileName } -overridden.json"
19
- ''--slurpfile profile ${ baseJSON }
20
- --slurpfile override ${ writeText "profile-override.json" profileOverride }
21
- --null-input
22
- ''
23
- "($profile[0] * $override[0])" ;
11
+ JSON = runWorkbenchJqOnly "profile-${ profileName } .json"
12
+ "profile json ${ profileName } " ;
24
13
25
14
value = __fromJSON ( __readFile JSON ) ;
26
15
31
20
inherit JSON value ;
32
21
33
22
topology . files =
34
- runCommand "topology-${ profile . name } " { }
35
- "${ workbench } /bin/wb topology make ${ profile . JSON } $out" ;
23
+ runCommand "topology-${ profileName } " { }
24
+ "${ workbench } /bin/wb topology make ${ JSON } $out" ;
36
25
37
26
node-specs =
38
27
rec {
39
- JSON = runWorkbenchJqOnly
40
- "node-specs-${ profile . name } .json"
41
- "profile node-specs ${ profile . JSON } " ;
28
+ JSON = runWorkbenchJqOnly "node-specs-${ profileName } .json"
29
+ "profile node-specs ${ JSON } " ;
42
30
43
31
value = __fromJSON ( __readFile JSON ) ;
44
32
} ;
You can’t perform that action at this time.
0 commit comments