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

vscode-extensions.ms-vscode.cpptools: aarch64 support
This commit is contained in:
Nikolay Korotkiy 2024-03-10 13:58:12 +04:00 committed by GitHub
commit aa0393ad25
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,14 +30,24 @@
let
gdbDefaultsTo = if gdbUseFixed then "${gdb}/bin/gdb" else "gdb";
supported = {
x86_64-linux = {
sha256 = "sha256-4mKCBqUCOndKEfsJqTIsfwEt+0CZI8QAhBj3Y4+wKlg=";
arch = "linux-x64";
};
aarch64-linux = {
sha256 = "sha256-Kjl8mEpayA1xMHEAMJ5k3Ctk3l48KlUBU5w3dL4pGWM=";
arch = "linux-arm64";
};
};
base = supported.${stdenv.system} or (throw "unsupported platform ${stdenv.system}");
in
vscode-utils.buildVscodeMarketplaceExtension {
mktplcRef = {
mktplcRef = base // {
name = "cpptools";
publisher = "ms-vscode";
version = "1.17.3";
sha256 = "sha256-4mKCBqUCOndKEfsJqTIsfwEt+0CZI8QAhBj3Y4+wKlg=";
arch = "linux-x64";
};
nativeBuildInputs = [
@ -85,6 +95,6 @@ vscode-utils.buildVscodeMarketplaceExtension {
homepage = "https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools";
license = lib.licenses.unfree;
maintainers = [ lib.maintainers.jraygauthier lib.maintainers.stargate01 ];
platforms = [ "x86_64-linux" ];
platforms = [ "x86_64-linux" "aarch64-linux" ];
};
}