Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 27 lines 662 B view raw
1{ lib, rustPlatform, fetchFromGitHub }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "rslint"; 5 version = "0.3.2"; 6 7 src = fetchFromGitHub { 8 owner = "rslint"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-3DEwi+bhqwP8aMpZYl07GZbe7IecraB3m54lZ5LViVc="; 12 }; 13 14 cargoSha256 = "sha256-bqF5v52uxbvmVmphXAmcWlCI6nbQzZemCxlTcqhRDTY="; 15 16 cargoBuildFlags = [ 17 "-p" "rslint_cli" 18 "-p" "rslint_lsp" 19 ]; 20 21 meta = with lib; { 22 description = "A fast, customizable, and easy to use JavaScript and TypeScript linter"; 23 homepage = "https://rslint.org"; 24 license = licenses.mit; 25 maintainers = with maintainers; [ figsoda ]; 26 }; 27}