Skip to content

Commit

Permalink
Extract
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaste committed Aug 8, 2022
1 parent 23480b5 commit 32e2ff3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
6 changes: 5 additions & 1 deletion nix/workbench/default.nix
Expand Up @@ -107,7 +107,11 @@ let
profile = materialise-profile
{ inherit profileNix workbench;
backendProfile =
backend.materialise-profile { inherit profileNix; };
pkgs.runCommand "workbench-profile-outputs-${profileNix.name}-${backend.name}d" {}
''
mkdir $out
cp ${backend.mkBackendConf profileNix} $out/${backend.name}.conf
'';
};

topology = profile-topology { inherit profileNix profile; };
Expand Down
8 changes: 0 additions & 8 deletions nix/workbench/supervisor.nix
Expand Up @@ -22,14 +22,6 @@ let

services-config = import ./profiles/services-config.nix {inherit lib workbench basePort stateDir useCabalRun enableEKG;};

materialise-profile =
{ profileNix }:
pkgs.runCommand "workbench-profile-outputs-${profileNix.name}-${name}d" {}
''
mkdir $out
cp ${mkBackendConf profileNix} $out/${name}.conf
'';

## Backend-specific Nix bits:
## mkBackendConf :: Profile -> SupervisorConf
mkBackendConf =
Expand Down

0 comments on commit 32e2ff3

Please sign in to comment.