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 31 let 32 gdbDefaultsTo = if gdbUseFixed then "${gdb}/bin/gdb" else "gdb"; 33 in 34 vscode-utils.buildVscodeMarketplaceExtension { 35 - mktplcRef = { 36 name = "cpptools"; 37 publisher = "ms-vscode"; 38 version = "1.17.3"; 39 - sha256 = "sha256-4mKCBqUCOndKEfsJqTIsfwEt+0CZI8QAhBj3Y4+wKlg="; 40 - arch = "linux-x64"; 41 }; 42 43 nativeBuildInputs = [ ··· 85 homepage = "https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools"; 86 license = lib.licenses.unfree; 87 maintainers = [ lib.maintainers.jraygauthier lib.maintainers.stargate01 ]; 88 - platforms = [ "x86_64-linux" ]; 89 }; 90 }
··· 30 31 let 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}"); 45 in 46 vscode-utils.buildVscodeMarketplaceExtension { 47 + mktplcRef = base // { 48 name = "cpptools"; 49 publisher = "ms-vscode"; 50 version = "1.17.3"; 51 }; 52 53 nativeBuildInputs = [ ··· 95 homepage = "https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools"; 96 license = lib.licenses.unfree; 97 maintainers = [ lib.maintainers.jraygauthier lib.maintainers.stargate01 ]; 98 + platforms = [ "x86_64-linux" "aarch64-linux" ]; 99 }; 100 }