Skip to content

Commit 7d62eb3

Browse files
committed
Add .#playwright shell to flake
1 parent bb53acb commit 7d62eb3

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

flake.nix

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,19 +207,32 @@
207207
];
208208
};
209209
};
210+
playwrightShell = let
211+
playwright-pkgs = inputs.nixpkgs.legacyPackages.${system};
212+
in {
213+
playwright = playwright-pkgs.mkShell {
214+
packages = [
215+
playwright-pkgs.playwright-test
216+
];
217+
};
218+
};
210219
flakeWithWasmShell = nixpkgs.lib.recursiveUpdate flake {
211220
devShells = wasmShell;
212221
hydraJobs = {devShells = wasmShell;};
213222
};
223+
flakeWithPlaywrightShell = nixpkgs.lib.recursiveUpdate flakeWithWasmShell {
224+
devShells = playwrightShell;
225+
hydraJobs = {devShells = playwrightShell;};
226+
};
214227
in
215-
nixpkgs.lib.recursiveUpdate flakeWithWasmShell rec {
228+
nixpkgs.lib.recursiveUpdate flakeWithPlaywrightShell rec {
216229
project = cabalProject;
217230
# add a required job, that's basically all hydraJobs.
218231
hydraJobs =
219232
nixpkgs.callPackages inputs.iohkNix.utils.ciJobsAggregates
220233
{
221234
ciJobs =
222-
flakeWithWasmShell.hydraJobs
235+
flakeWithPlaywrightShell.hydraJobs
223236
// {
224237
# This ensure hydra send a status for the required job (even if no change other than commit hash)
225238
revision = nixpkgs.writeText "revision" (inputs.self.rev or "dirty");

0 commit comments

Comments
 (0)