-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathflake.nix
More file actions
34 lines (33 loc) · 1.07 KB
/
flake.nix
File metadata and controls
34 lines (33 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
description = "GoA ui-component dev environment";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
inputs.playwright.url = "github:pietdevries94/playwright-web-flake";
outputs = { self, flake-utils, nixpkgs, playwright }:
flake-utils.lib.eachDefaultSystem (system:
let
overlay = final: prev: {
inherit (playwright.packages.${system}) playwright-test playwright-driver;
};
pkgs = import nixpkgs {
inherit system;
overlays = [ overlay ];
};
in
{
devShells = {
default = pkgs.mkShell {
buildInputs = [ pkgs.bashInteractive ];
packages = [
pkgs.nodejs_24
pkgs.playwright-test
];
shellHook = ''
export SHELL=/run/current-system/sw/bin/bash
export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
export PLAYWRIGHT_BROWSERS_PATH="${pkgs.playwright-driver.browsers}"
'';
};
};
});
}