diff options
| author | seth <[email protected]> | 2023-12-14 06:27:30 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-12-14 18:03:17 -0500 |
| commit | d1fa024ed29e6d86994f3df4ebe54fa6e7426298 (patch) | |
| tree | b8490b1f5fca86ebd120732f5600019fb3327310 | |
| parent | 87f3dd49f6a81c18a08126affd83183b8406d7f0 (diff) | |
sarif-fmt: disable test_clippy on darwin
| -rw-r--r-- | pkgs/sarif-fmt/default.nix | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/pkgs/sarif-fmt/default.nix b/pkgs/sarif-fmt/default.nix index ff94154..451af0c 100644 --- a/pkgs/sarif-fmt/default.nix +++ b/pkgs/sarif-fmt/default.nix @@ -1,11 +1,11 @@ { lib, + stdenv, fetchFromGitHub, rustPlatform, clippy, sarif-fmt, testers, - nix-update-script, }: rustPlatform.buildRustPackage rec { pname = "sarif-fmt"; @@ -22,28 +22,28 @@ rustPlatform.buildRustPackage rec { cargoBuildFlags = ["--package" pname]; cargoTestFlags = cargoBuildFlags; - nativeCheckInputs = [ + nativeCheckInputs = lib.optionals stdenv.isLinux [ # test_clippy clippy ]; - checkFlags = [ - # this test uses nix so...no go - "--skip=test_clang_tidy" - # ditto - "--skip=test_hadolint" - # ditto - "--skip=test_shellcheck" - ]; + checkFlags = + [ + # this test uses nix so...no go + "--skip=test_clang_tidy" + # ditto + "--skip=test_hadolint" + # ditto + "--skip=test_shellcheck" + ] + ++ lib.optionals stdenv.isDarwin [ + "--skip=test_clippy" + ]; passthru = { tests.version = testers.testVersion { package = sarif-fmt; }; - - updateScript = nix-update-script { - extraArgs = ["--regex" "'${pname}-(.*)'"]; - }; }; meta = with lib; { |
