diff options
| author | seth <[email protected]> | 2023-10-07 10:10:55 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-10-07 10:18:46 -0400 |
| commit | 519191cd9f31d1fe1c205535ddc4efe5f2e63793 (patch) | |
| tree | 441a3b0cbf33a15ac052a1fd6a6894cf169f493b /pkgs/clippy-sarif/default.nix | |
| parent | 62a26a94a11774b7c14ea10cde0ca2294990fb9b (diff) | |
treewide!: remove flake-parts
while i love flake parts, i want to keep dependencies for this project as small as possible
Diffstat (limited to 'pkgs/clippy-sarif/default.nix')
| -rw-r--r-- | pkgs/clippy-sarif/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/clippy-sarif/default.nix b/pkgs/clippy-sarif/default.nix new file mode 100644 index 0000000..11a611c --- /dev/null +++ b/pkgs/clippy-sarif/default.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; + }; +} |
