chromedriver: add support for aarch64-darwin

This commit is contained in:
Konstantin Alekseev 2021-12-30 23:23:45 +03:00
parent 4193c4c2db
commit 6e0a2c1c54
3 changed files with 9 additions and 2 deletions

View File

@ -68,7 +68,8 @@ def get_matching_chromedriver(version):
return {
'version': chromedriver_version,
'sha256_linux': nix_prefetch_url(get_chromedriver_url('linux64')),
'sha256_darwin': nix_prefetch_url(get_chromedriver_url('mac64'))
'sha256_darwin': nix_prefetch_url(get_chromedriver_url('mac64')),
'sha256_darwin_aarch64': nix_prefetch_url(get_chromedriver_url('mac64_m1'))
}

View File

@ -14,7 +14,8 @@
"chromedriver": {
"version": "96.0.4664.45",
"sha256_linux": "15wybxlh38sw7f2bzalf9ivfp8262cpcvhq08nw9d2cj3j39f13m",
"sha256_darwin": "0r3b8wgbd8xjb09f4vc402gp77y2aqjk9hpqvvr6xgdr7nqym20f"
"sha256_darwin": "0r3b8wgbd8xjb09f4vc402gp77y2aqjk9hpqvvr6xgdr7nqym20f",
"sha256_darwin_aarch64": "1yynw8ngs2655blnf1s6r9flbxlwgaybdvgl6r6h7ppl974dl7rm"
}
},
"beta": {

View File

@ -17,6 +17,11 @@ let
system = "mac64";
sha256 = upstream-info.sha256_darwin;
};
aarch64-darwin = {
system = "mac64_m1";
sha256 = upstream-info.sha256_darwin_aarch64;
};
};
spec = allSpecs.${stdenv.hostPlatform.system}