clippy-sarif: fetchFromGitHub -> fetchCrate

this makes things much easier to build as we don't need to account for
the monorepo
This commit is contained in:
seth
2024-07-15 14:13:56 -04:00
parent f40faf76f3
commit 799eff71f6
+5 -12
View File
@@ -1,6 +1,6 @@
{
lib,
fetchFromGitHub,
fetchCrate,
rustPlatform,
clippy,
clippy-sarif,
@@ -10,19 +10,12 @@ rustPlatform.buildRustPackage rec {
pname = "clippy-sarif";
version = "0.5.0";
src = fetchFromGitHub {
owner = "psastras";
repo = "sarif-rs";
rev = "clippy-sarif-v${version}";
hash = "sha256-RnoJfmkrqdhOioGkB7rTzHQ3kx9vIRfWDJN30/8JAvM=";
src = fetchCrate {
inherit pname version;
hash = "sha256-ylfL4N1BtbB1R7+Glwtgn5E6/v3wQ6oXWdmeyKNHdOw=";
};
cargoHash = "sha256-F97Cwk87M3SpLqXSECH5nZ8x+3c3oz28zxlPvQUZWlg=";
cargoBuildFlags = [
"--package"
"clippy-sarif"
];
cargoTestFlags = cargoBuildFlags;
cargoHash = "sha256-O0bLgj7rWwbEswVMfexsBGgJyObxseOohYht21Y6HpU=";
passthru = {
tests.version = testers.testVersion { package = clippy-sarif; };