msedgedriver: add x86_64-darwin and updater changes to match backport (#568044)

This commit is contained in:
Ulrik Strid
2026-09-29 07:03:04 +00:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@@ -215,10 +215,11 @@ update_msedgedriver() {
# msedgedriver/package.nix
declare -A hashes=(
[mac64_m1]=""
[mac64]=""
[linux64]=""
)
for driver_arch in mac64_m1 linux64; do
for driver_arch in mac64_m1 mac64 linux64; do
url="https://msedgedriver.microsoft.com/${version}/edgedriver_${driver_arch}.zip"
new_hash="$(
@@ -238,7 +239,7 @@ update_msedgedriver() {
"/pname = \"msedgedriver\";/,/^ meta = {/s/version = \".*\"/version = \"$version\"/" \
"$DRIVER_NIX"
for driver_arch in mac64_m1 linux64; do
for driver_arch in mac64_m1 mac64 linux64; do
sed -i \
"/pname = \"msedgedriver\";/,/^ meta = {/s|${driver_arch} = \".*\"|${driver_arch} = \"${hashes[$driver_arch]}\"|" \
"$DRIVER_NIX"

View File

@@ -19,6 +19,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
driverArch =
{
aarch64-darwin = "mac64_m1";
x86_64-darwin = "mac64";
x86_64-linux = "linux64";
}
.${stdenvNoCC.hostPlatform.system};
@@ -28,6 +29,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
hash =
{
mac64_m1 = "sha256-6nwe/vRPh5MkQLTiZNXepfFsLtILwoK925mgLCUUVNg=";
mac64 = "sha256-p/cnNKQub6sSEWPz2fJ+FoU7rgzeoZQMkv3PphvvHLw=";
linux64 = "sha256-XbOQl9FyckF3Qybb+40474ImJDKahBkekPoydf/TxV0=";
}
.${driverArch};