nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5}:
6
7rustPlatform.buildRustPackage rec {
8 pname = "rslint";
9 version = "0.3.2";
10
11 src = fetchFromGitHub {
12 owner = "rslint";
13 repo = "rslint";
14 rev = "v${version}";
15 sha256 = "sha256-3DEwi+bhqwP8aMpZYl07GZbe7IecraB3m54lZ5LViVc=";
16 };
17
18 cargoHash = "sha256-4DzQSnrUUNaeyNLKvnx4HKM4dAS10y5mu5S2NpzfFRQ=";
19
20 cargoBuildFlags = [
21 "-p"
22 "rslint_cli"
23 "-p"
24 "rslint_lsp"
25 ];
26
27 meta = with lib; {
28 description = "Fast, customizable, and easy to use JavaScript and TypeScript linter";
29 homepage = "https://rslint.org";
30 license = licenses.mit;
31 maintainers = with maintainers; [ figsoda ];
32 };
33}