Skip to content

Commit

Permalink
workbench: get rid of the profileOverrides
Browse files Browse the repository at this point in the history
  • Loading branch information
deepfire committed Jun 27, 2022
1 parent f269c2b commit faaf9f4
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions nix/workbench/profiles/default.nix
Expand Up @@ -5,22 +5,11 @@
, backend

, profileName
, profileOverride ? {}
}:

let
baseJSON = runWorkbenchJqOnly "profile-${profileName}.json"
"profile json ${profileName}";
JSON =
if profileOverride == {}
then baseJSON
else
runJq "profile-${profileName}-overridden.json"
''--slurpfile profile ${baseJSON}
--slurpfile override ${writeText "profile-override.json" profileOverride}
--null-input
''
"($profile[0] * $override[0])";
JSON = runWorkbenchJqOnly "profile-${profileName}.json"
"profile json ${profileName}";

value = __fromJSON (__readFile JSON);

Expand Down

0 comments on commit faaf9f4

Please sign in to comment.