vscode-extensions.redhat.vscode-xml: fix

This commit is contained in:
emaryn
2025-05-26 11:21:38 +08:00
parent 9327943338
commit 6068acb93a
2 changed files with 50 additions and 9 deletions
@@ -4044,15 +4044,7 @@ let
};
};
redhat.vscode-xml = buildVscodeMarketplaceExtension {
mktplcRef = {
publisher = "redhat";
name = "vscode-xml";
version = "0.29.0";
hash = "sha256-I6ZRtt43Qo3m8OfmjkVfBIaNWWvLULlwnJZqIp/WEuI=";
};
meta.license = lib.licenses.epl20;
};
redhat.vscode-xml = callPackage ./redhat.vscode-xml { };
redhat.vscode-yaml = buildVscodeMarketplaceExtension {
mktplcRef = {
@@ -0,0 +1,49 @@
{
lib,
stdenvNoCC,
vscode-utils,
vscode-extension-update-script,
}:
vscode-utils.buildVscodeMarketplaceExtension {
mktplcRef =
let
sources = {
"x86_64-linux" = {
arch = "linux-x64";
hash = "sha256-FnMTpDXC/UIMPfcBbpZRo/T0LljFP0+syv2aTZjOczc=";
};
"x86_64-darwin" = {
arch = "darwin-x64";
hash = "sha256-bPkRzOpd7nlIg3oLvrfIrcvrxJqnRhNZNzgao8ga+OM=";
};
"aarch64-darwin" = {
arch = "darwin-arm64";
hash = "sha256-UnRWxjmicfizn8SUspkhjjiYDJDFGI4ItIPLTnRZEy0=";
};
};
in
{
publisher = "redhat";
name = "vscode-xml";
version = "0.29.0";
}
// sources.${stdenvNoCC.hostPlatform.system}
or (throw "Unsupported system ${stdenvNoCC.hostPlatform.system}");
passthru.updateScript = vscode-extension-update-script {
extraArgs = [
"--override-filename"
"pkgs/applications/editors/vscode/extensions/redhat.vscode-xml/default.nix"
];
};
meta = {
license = lib.licenses.epl20;
platforms = [
"x86_64-linux"
"aarch64-darwin"
"x86_64-darwin"
];
};
}