Merge pull request #273416 from rowanG077/vscodes-ext/ms-cpptoools-aarch64

vscode-extensions.ms-vscode.cpptools: aarch64 support

authored by Nikolay Korotkiy and committed by GitHub aa0393ad ec306882

+14 -4
+14 -4
pkgs/applications/editors/vscode/extensions/ms-vscode.cpptools/default.nix
··· 30 30 31 31 let 32 32 gdbDefaultsTo = if gdbUseFixed then "${gdb}/bin/gdb" else "gdb"; 33 + supported = { 34 + x86_64-linux = { 35 + sha256 = "sha256-4mKCBqUCOndKEfsJqTIsfwEt+0CZI8QAhBj3Y4+wKlg="; 36 + arch = "linux-x64"; 37 + }; 38 + aarch64-linux = { 39 + sha256 = "sha256-Kjl8mEpayA1xMHEAMJ5k3Ctk3l48KlUBU5w3dL4pGWM="; 40 + arch = "linux-arm64"; 41 + }; 42 + }; 43 + 44 + base = supported.${stdenv.system} or (throw "unsupported platform ${stdenv.system}"); 33 45 in 34 46 vscode-utils.buildVscodeMarketplaceExtension { 35 - mktplcRef = { 47 + mktplcRef = base // { 36 48 name = "cpptools"; 37 49 publisher = "ms-vscode"; 38 50 version = "1.17.3"; 39 - sha256 = "sha256-4mKCBqUCOndKEfsJqTIsfwEt+0CZI8QAhBj3Y4+wKlg="; 40 - arch = "linux-x64"; 41 51 }; 42 52 43 53 nativeBuildInputs = [ ··· 85 95 homepage = "https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools"; 86 96 license = lib.licenses.unfree; 87 97 maintainers = [ lib.maintainers.jraygauthier lib.maintainers.stargate01 ]; 88 - platforms = [ "x86_64-linux" ]; 98 + platforms = [ "x86_64-linux" "aarch64-linux" ]; 89 99 }; 90 100 }