vscode-extensions: format using nixfmt-rfc-style

Co-authored-by: @SebTM
This commit is contained in:
superherointj 2024-04-20 11:11:28 -03:00
parent c84cf38a12
commit e324e2ff82
1 changed files with 127 additions and 90 deletions

View File

@ -1,27 +1,29 @@
# Before adding a new extension, read ./README.md
{ config
, lib
, fetchurl
, callPackage
, vscode-utils
, python3Packages
, jdk
, llvmPackages
, llvmPackages_14
, protobuf
, jq
, moreutils
, autoPatchelfHook
, zlib
, stdenv
{
autoPatchelfHook,
callPackage,
config,
fetchurl,
jdk,
jq,
lib,
llvmPackages,
llvmPackages_14,
moreutils,
protobuf,
python3Packages,
stdenv,
vscode-utils,
zlib,
}:
let
inherit (vscode-utils) buildVscodeMarketplaceExtension;
baseExtensions = self: lib.mapAttrs (_n: lib.recurseIntoAttrs)
{
baseExtensions =
self:
lib.mapAttrs (_n: lib.recurseIntoAttrs) {
"13xforever".language-x86-64-assembly = buildVscodeMarketplaceExtension {
mktplcRef = {
name = "language-x86-64-assembly";
@ -316,8 +318,7 @@ let
};
meta = {
description = "An arctic, north-bluish clean and elegant Visual Studio Code theme.";
downloadPage =
"https://marketplace.visualstudio.com/items?itemName=arcticicestudio.nord-visual-studio-code";
downloadPage = "https://marketplace.visualstudio.com/items?itemName=arcticicestudio.nord-visual-studio-code";
homepage = "https://github.com/arcticicestudio/nord-visual-studio-code";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.imgabe ];
@ -363,7 +364,7 @@ let
homepage = "https://github.com/asdine/vscode-cue";
changelog = "https://marketplace.visualstudio.com/items/asdine.cue/changelog";
license = lib.licenses.mit;
maintainers = [lib.maintainers.matthewpi];
maintainers = [ lib.maintainers.matthewpi ];
};
};
@ -735,30 +736,33 @@ let
};
charliermarsh.ruff = buildVscodeMarketplaceExtension {
mktplcRef = let
sources = {
"x86_64-linux" = {
arch = "linux-x64";
hash = "sha256-2c0tH/MlDOqeyffcV8ZCy4woogBTcf1GCuPPO8JXaWc=";
mktplcRef =
let
sources = {
"x86_64-linux" = {
arch = "linux-x64";
hash = "sha256-2c0tH/MlDOqeyffcV8ZCy4woogBTcf1GCuPPO8JXaWc=";
};
"x86_64-darwin" = {
arch = "darwin-x64";
hash = "sha256-euvGIlO7931N56R5BWKu3F9nSEoDgf+DXk7Hgl1qSUw=";
};
"aarch64-linux" = {
arch = "linux-arm64";
hash = "sha256-dGpIHChnfrQbxRZDuoAi4imgStyyPdxdvTQ3lknMYu0=";
};
"aarch64-darwin" = {
arch = "darwin-arm64";
hash = "sha256-tElX4C0I5AmpxSHMtqOsxSAUImD1tqArB5fnvhw4LFc=";
};
};
"x86_64-darwin" = {
arch = "darwin-x64";
hash = "sha256-euvGIlO7931N56R5BWKu3F9nSEoDgf+DXk7Hgl1qSUw=";
};
"aarch64-linux" = {
arch = "linux-arm64";
hash = "sha256-dGpIHChnfrQbxRZDuoAi4imgStyyPdxdvTQ3lknMYu0=";
};
"aarch64-darwin" = {
arch = "darwin-arm64";
hash = "sha256-tElX4C0I5AmpxSHMtqOsxSAUImD1tqArB5fnvhw4LFc=";
};
};
in {
name = "ruff";
publisher = "charliermarsh";
version = "2024.4.0";
} // sources.${stdenv.system} or (throw "Unsupported system ${stdenv.system}");
in
{
name = "ruff";
publisher = "charliermarsh";
version = "2024.4.0";
}
// sources.${stdenv.system} or (throw "Unsupported system ${stdenv.system}");
meta = {
license = lib.licenses.mit;
changelog = "https://marketplace.visualstudio.com/items/charliermarsh.ruff/changelog";
@ -917,7 +921,9 @@ let
};
};
contextmapper.context-mapper-vscode-extension = callPackage ./contextmapper.context-mapper-vscode-extension { };
contextmapper.context-mapper-vscode-extension =
callPackage ./contextmapper.context-mapper-vscode-extension
{ };
continue.continue = buildVscodeMarketplaceExtension {
mktplcRef =
@ -945,13 +951,10 @@ let
name = "continue";
publisher = "Continue";
version = "0.8.22";
} // sources.${stdenv.system};
nativeBuildInputs = [
autoPatchelfHook
];
buildInputs = [
stdenv.cc.cc.lib
];
}
// sources.${stdenv.system};
nativeBuildInputs = [ autoPatchelfHook ];
buildInputs = [ stdenv.cc.cc.lib ];
postInstall = ''
cd "$out/$installPrefix"
substituteInPlace "out/extension.js" \
@ -963,7 +966,12 @@ let
homepage = "https://github.com/continuedev/continue";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.raroh73 ];
platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" "aarch64-linux" ];
platforms = [
"x86_64-linux"
"x86_64-darwin"
"aarch64-darwin"
"aarch64-linux"
];
};
};
@ -1130,34 +1138,35 @@ let
};
devsense.phptools-vscode = buildVscodeMarketplaceExtension {
mktplcRef = let
sources = {
"x86_64-linux" = {
arch = "linux-x64";
hash = "sha256-8i5nRlzd+LnpEh9trWECxfiC1W4S0ekBab5vo18OlsA=";
mktplcRef =
let
sources = {
"x86_64-linux" = {
arch = "linux-x64";
hash = "sha256-8i5nRlzd+LnpEh9trWECxfiC1W4S0ekBab5vo18OlsA=";
};
"x86_64-darwin" = {
arch = "darwin-x64";
sha256 = "14crw56277rdwhigabb3nsndkfcs3yzzf7gw85jvryxviq32chgy";
};
"aarch64-linux" = {
arch = "linux-arm64";
sha256 = "1j1xlvbg3nrfmdd9zm6kywwicdwdkrq0si86lcndaii8m7sj5pfp";
};
"aarch64-darwin" = {
arch = "darwin-arm64";
sha256 = "0nlks6iqxkx1xlicsa8lrb1319rgznlxkv2gg7wkwgzph97ik8bi";
};
};
"x86_64-darwin" = {
arch = "darwin-x64";
sha256 = "14crw56277rdwhigabb3nsndkfcs3yzzf7gw85jvryxviq32chgy";
};
"aarch64-linux" = {
arch = "linux-arm64";
sha256 = "1j1xlvbg3nrfmdd9zm6kywwicdwdkrq0si86lcndaii8m7sj5pfp";
};
"aarch64-darwin" = {
arch = "darwin-arm64";
sha256 = "0nlks6iqxkx1xlicsa8lrb1319rgznlxkv2gg7wkwgzph97ik8bi";
};
};
in {
name = "phptools-vscode";
publisher = "devsense";
version = "1.41.14332";
} // sources.${stdenv.system};
in
{
name = "phptools-vscode";
publisher = "devsense";
version = "1.41.14332";
}
// sources.${stdenv.system};
nativeBuildInputs = [
autoPatchelfHook
];
nativeBuildInputs = [ autoPatchelfHook ];
buildInputs = [
zlib
@ -1175,7 +1184,12 @@ let
homepage = "https://github.com/DEVSENSE/phptools-docs";
license = lib.licenses.unfree;
maintainers = [ lib.maintainers.drupol ];
platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" "aarch64-linux" ];
platforms = [
"x86_64-linux"
"x86_64-darwin"
"aarch64-darwin"
"aarch64-linux"
];
};
};
@ -1203,7 +1217,9 @@ let
version = "0.0.4";
sha256 = "0sa04srhqmngmw71slnrapi2xay0arj42j4gkan8i11n7bfi1xpf";
};
meta = { license = lib.licenses.mit; };
meta = {
license = lib.licenses.mit;
};
};
dhall.vscode-dhall-lsp-server = buildVscodeMarketplaceExtension {
@ -1213,7 +1229,9 @@ let
version = "0.0.4";
sha256 = "1zin7s827bpf9yvzpxpr5n6mv0b5rhh3civsqzmj52mdq365d2js";
};
meta = { license = lib.licenses.mit; };
meta = {
license = lib.licenses.mit;
};
};
dhedgecock.radical-vscode = buildVscodeMarketplaceExtension {
@ -1240,7 +1258,9 @@ let
version = "0.0.8";
hash = "sha256-BQPiSxiPPjdNPtIJI8L+558DVKxngPAI9sscpcJSJUI=";
};
meta = { license = lib.licenses.asl20; };
meta = {
license = lib.licenses.asl20;
};
};
divyanshuagrawal.competitive-programming-helper = buildVscodeMarketplaceExtension {
@ -1794,8 +1814,7 @@ let
};
meta = {
description = "GitHub theme for VS Code";
downloadPage =
"https://marketplace.visualstudio.com/items?itemName=GitHub.github-vscode-theme";
downloadPage = "https://marketplace.visualstudio.com/items?itemName=GitHub.github-vscode-theme";
homepage = "https://github.com/primer/github-vscode-theme";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.hugolgst ];
@ -1830,7 +1849,9 @@ let
version = "0.78.1";
hash = "sha256-T9oW6o4ItZfR8E1qrcH3nhMvVB6ihi4kpiDz7YGHOcI=";
};
meta = { license = lib.licenses.mit; };
meta = {
license = lib.licenses.mit;
};
};
gitlab.gitlab-workflow = buildVscodeMarketplaceExtension {
@ -2439,9 +2460,15 @@ let
hash = "sha256-IueXiN+077tiecAsVCzgYksWYTs00mZv6XJVMtRJ/PQ=";
};
nativeBuildInputs = [ jq moreutils ];
nativeBuildInputs = [
jq
moreutils
];
buildInputs = [ cfn-lint pydot ];
buildInputs = [
cfn-lint
pydot
];
postInstall = ''
cd "$out/$installPrefix"
@ -4179,7 +4206,11 @@ let
downloadPage = "https://marketplace.visualstudio.com/items?itemName=uiua-lang.uiua-vscode";
homepage = "https://github.com/uiua-lang/uiua-vscode";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ tomasajt wackbyte defelo ];
maintainers = with lib.maintainers; [
tomasajt
wackbyte
defelo
];
};
};
@ -4249,7 +4280,10 @@ let
sha256 = "1nlrijjwc35n1xgb5lgnr4yvlgfcxd0vdj93ip8lv2xi8x1ni5f6";
};
nativeBuildInputs = [ jq moreutils ];
nativeBuildInputs = [
jq
moreutils
];
buildInputs = [ jdk ];
@ -4693,7 +4727,10 @@ let
version = "0.5.4";
sha256 = "08dfl5h1k6s542qw5qx2czm1wb37ck9w2vpjz44kp2az352nmksb";
};
nativeBuildInputs = [ jq moreutils ];
nativeBuildInputs = [
jq
moreutils
];
postInstall = ''
cd "$out/$installPrefix"
jq '.contributes.configuration.properties.protoc.properties.path.default = "${protobuf}/bin/protoc"' package.json | sponge package.json