build: provide chromium in nix dev shell for playwright e2e

This commit is contained in:
2026-08-19 21:36:48 +02:00
parent 05fc40263b
commit 7e091cd6ed
+10 -3
View File
@@ -27,12 +27,19 @@
nodejs_22 nodejs_22
corepack_22 corepack_22
git git
# extensible: playwright browsers, capacitor/android SDK tooling, # extensible: capacitor/android SDK tooling, etc. go here as
# etc. go here as the project grows # the project grows
]; ]
# playwright e2e drives the system chromium (see
# playwright.config.ts); nixpkgs chromium is linux-only
++ pkgs.lib.optionals pkgs.stdenv.isLinux [ chromium ];
shellHook = '' shellHook = ''
echo "sattle dev shell (node $(node --version))" echo "sattle dev shell (node $(node --version))"
${pkgs.lib.optionalString pkgs.stdenv.isLinux ''
export CHROMIUM_PATH="${pkgs.chromium}/bin/chromium"
echo "playwright e2e chromium: $CHROMIUM_PATH"
''}
''; '';
}; };
} }