lol

v8: Fix aarch64 build

https://hydra.nixos.org/build/65224506

Besides dontUpdateAutotoolsGnuConfigScripts, the 'arch' assignment was
wrong and resulted in "x64" (stdenv.isArm is not true on AArch64).

+7 -7
+7 -7
pkgs/development/libraries/v8/default.nix
··· 7 7 assert readline != null; 8 8 9 9 let 10 - arch = if stdenv.isArm 11 - then if stdenv.is64bit 12 - then"arm64" 13 - else "arm" 14 - else if stdenv.is64bit 15 - then"x64" 16 - else "ia32"; 10 + arch = if stdenv.isx86_64 then "x64" 11 + else if stdenv.isi686 then "ia32" 12 + else if stdenv.isAarch64 then "arm64" 13 + else if stdenv.isArm then "arm" 14 + else throw "Unknown architecture for v8"; 17 15 git_url = "https://chromium.googlesource.com"; 18 16 clangFlag = if stdenv.isDarwin then "1" else "0"; 19 17 sharedFlag = if static then "static_library" else "shared_library"; ··· 171 169 ]; 172 170 173 171 enableParallelBuilding = true; 172 + 173 + dontUpdateAutotoolsGnuConfigScripts = if stdenv.isAarch64 then true else null; 174 174 175 175 # the `libv8_libplatform` target is _only_ built as a static library, 176 176 # and is expected to be statically linked in when needed.