mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-09 16:18:34 +01:00
Changelog: https://github.com/Automattic/harper/releases/tag/v0.71.0 Diff: https://github.com/Automattic/harper/compare/v0.70.0...v0.71.0
39 lines
1 KiB
Nix
39 lines
1 KiB
Nix
{
|
|
lib,
|
|
vscode-utils,
|
|
vscode-extension-update-script,
|
|
jq,
|
|
harper,
|
|
moreutils,
|
|
...
|
|
}:
|
|
|
|
vscode-utils.buildVscodeMarketplaceExtension {
|
|
mktplcRef = {
|
|
name = "harper";
|
|
publisher = "elijah-potter";
|
|
version = harper.version;
|
|
hash = "sha256-ldXQKAJX8YQVjtGjKRom14fNuA6ZwDwpPusbjS+4G+I=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
jq
|
|
moreutils
|
|
];
|
|
|
|
postInstall = ''
|
|
cd "$out/$installPrefix"
|
|
jq '.contributes.configuration.properties."harper.path".default = "${harper}/bin/harper-ls"' package.json | sponge package.json
|
|
'';
|
|
passthru.updateScript = vscode-extension-update-script { };
|
|
|
|
meta = {
|
|
changelog = "https://github.com/Automattic/harper/releases/tag/v${harper.version}";
|
|
description = "The grammar checker for developers as a Visual Studio Code extension";
|
|
downloadPage = "https://marketplace.visualstudio.com/items?itemName=elijah-potter.harper";
|
|
homepage = "https://github.com/automattic/harper";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ MasterEvarior ];
|
|
};
|
|
}
|