diff --git a/pkgs/development/tools/rslint/default.nix b/pkgs/development/tools/rslint/default.nix new file mode 100644 index 000000000000..11ed2349e600 --- /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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7270cfdc61ad..81b6e6b59bc5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8871,6 +8871,8 @@ with pkgs; rsibreak = libsForQt5.callPackage ../applications/misc/rsibreak { }; + rslint = callPackage ../development/tools/rslint { }; + rss-bridge-cli = callPackage ../applications/misc/rss-bridge-cli { }; rss2email = callPackage ../applications/networking/feedreaders/rss2email {