Skip to content

Commit

Permalink
Pull up all-profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaste committed Aug 8, 2022
1 parent fdc2692 commit 07686e2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion nix/pkgs.nix
Expand Up @@ -89,7 +89,7 @@ final: prev: with final; {
docker-workbench-nix =
{ workbench ? pkgs.workbench, ... }@args: pkgs.callPackage ./workbench/docker.nix args;

all-profiles-json = (pkgs.callPackage ./workbench/supervisor.nix {}).all-profiles.JSON;
all-profiles-json = (workbench.all-profiles{ inherit (supervisord-workbench-nix) services-config; }).JSON;

# An instance of the workbench, specialised to the supervisord backend and a profile,
# that can be used with nix-shell or lorri.
Expand Down
5 changes: 1 addition & 4 deletions nix/workbench/docker.nix
Expand Up @@ -49,13 +49,10 @@ let
};
};

all-profiles =
workbench.all-profiles
{ inherit (backend) services-config; };
in
{
inherit cacheDir stateDir basePort;
inherit workbench;
inherit backend;
inherit all-profiles;
inherit services-config;
}
5 changes: 1 addition & 4 deletions nix/workbench/supervisor.nix
Expand Up @@ -49,13 +49,10 @@ let
};
};

all-profiles =
workbench.all-profiles
{ inherit (backend) services-config; };
in
{
inherit cacheDir stateDir basePort;
inherit workbench;
inherit backend;
inherit all-profiles;
inherit services-config;
}

0 comments on commit 07686e2

Please sign in to comment.