2021-12-19 01:06:50 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, withJson ? true, stdenv }:
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "statix";
|
|
|
|
# also update version of the vim plugin in pkgs/misc/vim-plugins/overrides.nix
|
|
|
|
# the version can be found in flake.nix of the source code
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "0.5.3";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nerdypepper";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "sha256-ibz5b+amOTlLxDlCPrC7A6rSFac3JXwiq3HMyIJwdUw=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
cargoSha256 = "sha256-MKInDGBZcOp+90cus6X2GAgjZx6M1TbSJgpUQWx60sQ=";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
buildFeatures = lib.optional withJson "json";
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
# tests are failing on darwin
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|