hadolint-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:29:04 -04:00
parent 183b8e644f
commit ee0085a562
No known key found for this signature in database
GPG Key ID: D31BD0D494BBEE86

View File

@ -1,6 +1,6 @@
{
lib,
fetchFromGitHub,
fetchCrate,
rustPlatform,
hadolint-sarif,
testers,
@ -9,19 +9,12 @@ rustPlatform.buildRustPackage rec {
pname = "hadolint-sarif";
version = "0.5.0";
src = fetchFromGitHub {
owner = "psastras";
repo = "sarif-rs";
rev = "hadolint-sarif-v${version}";
hash = "sha256-RnoJfmkrqdhOioGkB7rTzHQ3kx9vIRfWDJN30/8JAvM=";
src = fetchCrate {
inherit pname version;
hash = "sha256-Zh3y31Q+ue1TqncZpdX+fAp2yfEnv8W8jkzUW7UvrKg=";
};
cargoHash = "sha256-x2JHMc8OcOVCJ0X68tTyMI8P7bM8javjkYlrHBLMjus=";
cargoBuildFlags = [
"--package"
"hadolint-sarif"
];
cargoTestFlags = cargoBuildFlags;
cargoHash = "sha256-bwEQ9lZXvZL6JN24N8gRdbV5gcFiH1fQ59PQILfW1z8=";
passthru = {
tests.version = testers.testVersion { package = hadolint-sarif; };