diff options
author | figsoda <figsoda@pm.me> | 2021-10-03 12:58:45 -0400 |
---|---|---|
committer | figsoda <figsoda@pm.me> | 2021-10-03 12:58:45 -0400 |
commit | 9a8c64a2f608c305b38137f793afc1e7865a00c3 (patch) | |
tree | 6d94847e3f029a7993f13efcbea5ec030f4da2c6 /pkgs/development/tools/rslint | |
parent | 441e405c77f73522cc6e39b864efd3facaffb8e2 (diff) |
rslint: init at 0.3.0
Diffstat (limited to 'pkgs/development/tools/rslint')
-rw-r--r-- | pkgs/development/tools/rslint/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/tools/rslint/default.nix b/pkgs/development/tools/rslint/default.nix new file mode 100644 index 0000000000000..11ed2349e6004 --- /dev/null +++ b/pkgs/development/tools/rslint/default.nix @@ -0,0 +1,27 @@ +{ lib, rustPlatform, fetchFromGitHub }: + +rustPlatform.buildRustPackage rec { + pname = "rslint"; + version = "0.3.0"; + + src = fetchFromGitHub { + owner = "rslint"; + repo = pname; + rev = "v${version}"; + sha256 = "12329x39zqmgl8zf228msdcdjfv3h11dmfha1kiwq71jvfga2v10"; + }; + + cargoSha256 = "sha256-/pZ6jQ/IdLLFdFTvmbXZKCw9HhnTkSSh6q79Rpbtfz8="; + + cargoBuildFlags = [ + "-p" "rslint_cli" + "-p" "rslint_lsp" + ]; + + meta = with lib; { + description = "A fast, customizable, and easy to use JavaScript and TypeScript linter"; + homepage = "https://rslint.org"; + license = licenses.mit; + maintainers = with maintainers; [ figsoda ]; + }; +} |