aboutsummaryrefslogtreecommitdiff
path: root/shell.nix
diff options
context:
space:
mode:
Diffstat (limited to 'shell.nix')
-rw-r--r--shell.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/shell.nix b/shell.nix
new file mode 100644
index 0000000..52d821e
--- /dev/null
+++ b/shell.nix
@@ -0,0 +1,14 @@
+{ pkgs ? import <nixpkgs> {} }:
+ pkgs.mkShell {
+ nativeBuildInputs = with pkgs; [
+ vscode
+ playwright-driver.browsers
+ ];
+
+ shellHook = ''
+ export PLAYWRIGHT_NODEJS_PATH=${pkgs.nodejs_20}/bin/node
+ export PLAYWRIGHT_BROWSERS_PATH=${pkgs.playwright-driver.browsers}
+ export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
+ export PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS=true
+ '';
+}