Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

39 lines
1.0 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-m9PN1BZf6rLrNnX8meX2TjGx8zGLl0GgnHEgQirh9Oc=";
};
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 ];
};
}