single-file-cli: remove chromedriver from nativeCheckInputs (#339062)

This commit is contained in:
Nick Cao 2024-09-12 19:50:23 -04:00 committed by GitHub
commit ca5835d71c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,7 +4,6 @@
buildNpmPackage,
fetchFromGitHub,
chromium,
chromedriver,
python3,
}:
buildNpmPackage {
@ -19,7 +18,7 @@ buildNpmPackage {
};
npmDepsHash = "sha256-wiBpWw9nb/pWVGIc4Vl/IxxR5ic0LzLMMr3WxRNvYdM=";
nativeCheckInputs = [chromium chromedriver];
nativeCheckInputs = [chromium];
doCheck = stdenv.isLinux;
postBuild = ''
@ -34,8 +33,7 @@ buildNpmPackage {
./single-file \
--browser-headless \
--web-driver-executable-path=chromedriver \
--back-end=webdriver-chromium \
--browser-executable-path chromium-browser\
http://127.0.0.1:8000
grep -F 'Page saved with SingleFile' 'Directory listing for'*.html