diff options
| author | seth <[email protected]> | 2023-09-02 10:45:39 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-09-02 10:45:39 -0400 |
| commit | c29fc3796c51dd0859371b0a567434a86386f847 (patch) | |
| tree | 95d35d719d378ee4d9cba12ec6ac6405cb942d06 | |
| parent | 667b3855f2bd634809d44c534d260d70447d4fbb (diff) | |
pkgs/clippy-sarif: init
| -rw-r--r-- | pkgs/all-packages.nix | 2 | ||||
| -rw-r--r-- | pkgs/clippy-sarif.nix | 30 |
2 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/all-packages.nix b/pkgs/all-packages.nix index e179817..1709f66 100644 --- a/pkgs/all-packages.nix +++ b/pkgs/all-packages.nix @@ -5,6 +5,8 @@ in { check-pr = callPackage ./check-pr.nix {}; + clippy-sarif = callPackage ./clippy-sarif.nix {}; + fastfetch = callPackage ./fastfetch.nix {}; huion = callPackage ./huion.nix {}; diff --git a/pkgs/clippy-sarif.nix b/pkgs/clippy-sarif.nix new file mode 100644 index 0000000..11a611c --- /dev/null +++ b/pkgs/clippy-sarif.nix @@ -0,0 +1,30 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + clippy, +}: +rustPlatform.buildRustPackage rec { + pname = "clippy-sarif"; + version = "0.4.1"; + + src = lib.cleanSource (fetchFromGitHub { + owner = "psastras"; + repo = "sarif-rs"; + rev = "${pname}-v${version}"; + hash = "sha256-TnH2GQ8uComMgeUk7i63KA3hbWC/5KuLxoRXlR8qlVs="; + }); + + cargoSha256 = "sha256-Y0n0GfUguqdTdZO6SyWNysv3IlXiKqhSiiHxxUEUZo8="; + cargoBuildFlags = ["--package ${pname}"]; + + doCheck = false; + + meta = with lib; { + description = "CLI tool to convert clippy diagnostics into SARIF"; + homepage = "https://github.com/psastras/sarif-rs"; + maintainers = with maintainers; [getchoo]; + license = licenses.mit; + inherit (clippy.meta) platforms; + }; +} |
