From 64bbe7aa17e368f4082d85f8c721970bb194a41f Mon Sep 17 00:00:00 2001 From: figsoda Date: Mon, 15 Nov 2021 19:39:14 -0500 Subject: [PATCH] statix: use buildFeatures --- pkgs/tools/nix/statix/default.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/tools/nix/statix/default.nix b/pkgs/tools/nix/statix/default.nix index 3e56fa4fb608..bb17d8df275d 100644 --- a/pkgs/tools/nix/statix/default.nix +++ b/pkgs/tools/nix/statix/default.nix @@ -15,9 +15,7 @@ rustPlatform.buildRustPackage rec { cargoSha256 = "sha256-e20POz9ZvuT0S+YG+9x7hcudhXQpOR4rVSFJbz76OI0="; - cargoBuildFlags = lib.optionals withJson [ "--features" "json" ]; - - cargoCheckFlags = cargoBuildFlags; + buildFeatures = lib.optional withJson "json"; meta = with lib; { description = "Lints and suggestions for the nix programming language";