nixpkgs-suyu/pkgs/tools/nix/statix/default.nix

27 lines
734 B
Nix
Raw Normal View History

2021-10-27 02:58:26 +02:00
{ lib, rustPlatform, fetchFromGitHub, withJson ? true }:
rustPlatform.buildRustPackage rec {
pname = "statix";
version = "0.3.1";
src = fetchFromGitHub {
owner = "nerdypepper";
repo = pname;
rev = "v${version}";
sha256 = "sha256-Jh3ErzK8vqEdDtZP7O/PAmHQznUTB18nCQwfckFxyLA=";
};
cargoSha256 = "sha256-y+vBHAHTe++tYOWWQ5ioFlprRfDximZE8KSGNNBSPAk=";
cargoBuildFlags = lib.optionals withJson [ "--features" "json" ];
cargoCheckFlags = cargoBuildFlags;
meta = with lib; {
description = "Lints and suggestions for the nix programming language";
homepage = "https://github.com/nerdypepper/statix";
license = licenses.mit;
maintainers = with maintainers; [ figsoda nerdypepper ];
};
}