38 lines
841 B
Nix
38 lines
841 B
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
rustPlatform,
|
||
|
|
fetchFromGitHub,
|
||
|
|
nix-update-script,
|
||
|
|
}:
|
||
|
|
|
||
|
|
rustPlatform.buildRustPackage rec {
|
||
|
|
pname = "harper";
|
||
|
|
version = "0.65.0";
|
||
|
|
|
||
|
|
src = fetchFromGitHub {
|
||
|
|
owner = "Automattic";
|
||
|
|
repo = "harper";
|
||
|
|
rev = "v${version}";
|
||
|
|
hash = "sha256-y2oYEJTZWZ7Rc7ZLjYUh3Cy9dtznGLhIXzJ6D0JUIGw=";
|
||
|
|
};
|
||
|
|
|
||
|
|
buildAndTestSubdir = "harper-ls";
|
||
|
|
|
||
|
|
cargoHash = "sha256-o6RFBCvPn3AH3mMI3guHziqOcYN99o8yk5b6VXWoepI=";
|
||
|
|
|
||
|
|
passthru.updateScript = nix-update-script { };
|
||
|
|
|
||
|
|
meta = {
|
||
|
|
description = "Grammar Checker for Developers";
|
||
|
|
homepage = "https://github.com/Automattic/harper";
|
||
|
|
changelog = "https://github.com/Automattic/harper/releases/tag/v${version}";
|
||
|
|
license = lib.licenses.asl20;
|
||
|
|
maintainers = with lib.maintainers; [
|
||
|
|
pbsds
|
||
|
|
sumnerevans
|
||
|
|
ddogfoodd
|
||
|
|
];
|
||
|
|
mainProgram = "harper-ls";
|
||
|
|
};
|
||
|
|
}
|