Skip to content

Commit

Permalink
Revert extraction in ececb59
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaste committed Aug 8, 2022
1 parent ea63e99 commit 83a4f7d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
8 changes: 8 additions & 0 deletions nix/workbench/backend/docker.nix
Expand Up @@ -22,6 +22,14 @@ let

services-config = import ./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/docker.conf
'';

## Backend-specific Nix bits:
## mkBackendConf :: Profile -> SupervisorConf/DockerConf
mkBackendConf =
Expand Down
8 changes: 8 additions & 0 deletions nix/workbench/backend/supervisor.nix
Expand Up @@ -22,6 +22,14 @@ let

services-config = import ./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/supervisor.conf
'';

## Backend-specific Nix bits:
## mkBackendConf :: Profile -> SupervisorConf/DockerConf
mkBackendConf =
Expand Down
7 changes: 1 addition & 6 deletions nix/workbench/default.nix
Expand Up @@ -107,12 +107,7 @@ let

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

topology = profile-topology { inherit profileNix profile; };
Expand Down

0 comments on commit 83a4f7d

Please sign in to comment.