8 rustPlatform.buildRustPackage rec {
12 src = fetchFromGitHub {
13 owner = "flatt-security";
16 sha256 = "sha256-G7sHaDq+F5lXNaF1sSLUecdjZbCejJE79P4AQifKdFY=";
17 fetchSubmodules = true;
19 cargoSha256 = "sha256-xd4andytmDMOIT+3DkmUC9fkxxGJ6yRY2WSdnGB6ZwY=";
23 # required to build serde-sarif dependency
28 installShellCompletion --cmd shisho \
29 --bash <($out/bin/shisho completion bash) \
30 --fish <($out/bin/shisho completion fish) \
31 --zsh <($out/bin/shisho completion zsh)
34 doInstallCheck = true;
35 installCheckPhase = ''
36 runHook preInstallCheck
38 $out/bin/shisho --help
39 $out/bin/shisho --version | grep "${version}"
41 runHook postInstallCheck
45 homepage = "https://docs.shisho.dev/shisho/";
46 changelog = "https://docs.shisho.dev/changelog/";
47 description = "Lightweight static analyzer for several programming languages";
49 Shisho is a lightweight static code analyzer designed for developers and
50 is the core engine for Shisho products. It is, so to speak, like a
51 pluggable and configurable linter; it gives developers a way to codify
52 your domain knowledge over your code as rules. With powerful automation
53 and integration capabilities, the rules will help you find and fix issues
56 license = licenses.agpl3Only;
57 maintainers = with maintainers; [ jk ];