mirror of
https://github.com/tompro/sattle.git
synced 2026-08-27 07:15:59 +00:00
build: provide chromium in nix dev shell for playwright e2e
This commit is contained in:
@@ -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"
|
||||||
|
''}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user