mirror of
https://github.com/tompro/sattle.git
synced 2026-08-26 23:05:58 +00:00
build: provide chromium in nix dev shell for playwright e2e
This commit is contained in:
@@ -27,12 +27,19 @@
|
||||
nodejs_22
|
||||
corepack_22
|
||||
git
|
||||
# extensible: playwright browsers, capacitor/android SDK tooling,
|
||||
# etc. go here as the project grows
|
||||
];
|
||||
# extensible: capacitor/android SDK tooling, etc. go here as
|
||||
# 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 = ''
|
||||
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"
|
||||
''}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user