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

27 lines
818 B
Nix
Raw Normal View History

2021-10-27 02:58:26 +02:00
{ lib, rustPlatform, fetchFromGitHub, withJson ? true }:
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
2021-12-04 11:39:03 +01:00
version = "0.4.2";
2021-10-27 02:58:26 +02:00
src = fetchFromGitHub {
owner = "nerdypepper";
repo = pname;
rev = "v${version}";
2021-12-04 11:39:03 +01:00
sha256 = "sha256-4hVEwm2xuuHFy38/EJLKjGuxTYCAcKRHHfFKLvqp+M0=";
2021-10-27 02:58:26 +02:00
};
2021-12-04 11:39:03 +01:00
cargoSha256 = "sha256-15C/ye8nYLtriBlqbf1ul41IFtShGY2LTX10z1/08Po=";
2021-10-27 02:58:26 +02:00
2021-11-16 01:39:14 +01:00
buildFeatures = lib.optional withJson "json";
2021-10-27 02:58:26 +02: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 ];
};
}