1 { lib, rustPlatform, fetchFromGitHub, withJson ? true, stdenv }:
3 rustPlatform.buildRustPackage rec {
5 # also update version of the vim plugin in
6 # pkgs/applications/editors/vim/plugins/overrides.nix
7 # the version can be found in flake.nix of the source code
10 src = fetchFromGitHub {
11 owner = "nerdypepper";
14 sha256 = "sha256-bMs3XMiGP6sXCqdjna4xoV6CANOIWuISSzCaL5LYY4c=";
17 cargoHash = "sha256-QF7P0CWlKfBzVQC//eKhf/u1qV9AfLIJDxWDDWzMG8g=";
19 buildFeatures = lib.optional withJson "json";
21 # tests are failing on darwin
22 doCheck = !stdenv.hostPlatform.isDarwin;
25 description = "Lints and suggestions for the nix programming language";
26 homepage = "https://github.com/nerdypepper/statix";
27 license = licenses.mit;
28 mainProgram = "statix";
29 maintainers = with maintainers; [ figsoda nerdypepper ];