vscode-extensions.oliver-ni.scheme-fmt: init at 1.2.1

This commit is contained in:
mivorasu 2025-07-21 15:19:39 +08:00 committed by mivorasu
parent b5d4ac4f01
commit 18a9971a94
2 changed files with 31 additions and 0 deletions

View File

@ -3854,6 +3854,8 @@ let
};
};
oliver-ni.scheme-fmt = callPackage ./oliver-ni.scheme-fmt { };
oops418.nix-env-picker = callPackage ./oops418.nix-env-picker { };
ph-hawkins.arc-plus = callPackage ./ph-hawkins.arc-plus { };

View File

@ -0,0 +1,29 @@
{
lib,
vscode-utils,
jq,
python3,
moreutils,
}:
vscode-utils.buildVscodeMarketplaceExtension {
mktplcRef = {
publisher = "oliver-ni";
name = "scheme-fmt";
version = "1.2.1";
hash = "sha256-oTXy0Vjd0s7ZYZzr36ILQOJm4BW9Qd7y8fGbnhkaD1Y=";
};
postInstall = ''
cd "$out/$installPrefix"
${lib.getExe jq} '.contributes.configuration.properties."scheme-fmt.pythonPath".default = "${lib.getExe python3}"' package.json | ${lib.getExe' moreutils "sponge"} package.json
'';
meta = {
description = "Formats Scheme source code";
downloadPage = "https://marketplace.visualstudio.com/items?itemName=oliver-ni.scheme-fmt";
homepage = "https://github.com/oliver-ni/scheme-fmt";
license = lib.licenses.cc0;
maintainers = with lib.maintainers; [ tuynia ];
};
}