chromedriver: drop x86_64-darwin from update script
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
"version": "150.0.7871.124",
|
||||
"chromedriver": {
|
||||
"version": "150.0.7871.125",
|
||||
"hash_darwin": "sha256-HJTBS6eRmAsxrn7WW4hCxMCXdzn+1PYz1W0uZHJ38yk=",
|
||||
"hash_darwin_aarch64": "sha256-VCgkc6MeMPbt0F2ZVTJNn9yJbSYNhy1zr8KzPVaVi0I="
|
||||
},
|
||||
"deps": {
|
||||
|
||||
@@ -170,7 +170,6 @@ async function fetch_chromedriver_binaries(version) {
|
||||
const url = (platform) => `https://storage.googleapis.com/chrome-for-testing-public/${version}/${platform}/chromedriver-${platform}.zip`
|
||||
return {
|
||||
version,
|
||||
hash_darwin: await prefetch(url('mac-x64')),
|
||||
hash_darwin_aarch64: await prefetch(url('mac-arm64')),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,19 +12,6 @@ let
|
||||
(lib.importJSON ../../../../applications/networking/browsers/chromium/info.json)
|
||||
.chromium.chromedriver;
|
||||
|
||||
# See ./source.nix for Linux
|
||||
allSpecs = {
|
||||
|
||||
aarch64-darwin = {
|
||||
system = "mac-arm64";
|
||||
hash = upstream-info.hash_darwin_aarch64;
|
||||
};
|
||||
};
|
||||
|
||||
spec =
|
||||
allSpecs.${stdenv.hostPlatform.system}
|
||||
or (throw "missing chromedriver binary for ${stdenv.hostPlatform.system}");
|
||||
|
||||
inherit (upstream-info) version;
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
@@ -32,8 +19,8 @@ stdenv.mkDerivation {
|
||||
inherit version;
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://storage.googleapis.com/chrome-for-testing-public/${version}/${spec.system}/chromedriver-${spec.system}.zip";
|
||||
inherit (spec) hash;
|
||||
url = "https://storage.googleapis.com/chrome-for-testing-public/${version}/mac-arm64/chromedriver-mac-arm64.zip";
|
||||
hash = upstream-info.hash_darwin_aarch64;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ unzip ];
|
||||
|
||||
Reference in New Issue
Block a user