mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
30 lines
889 B
Nix
30 lines
889 B
Nix
{ lib, rustPlatform, fetchFromGitHub, withJson ? true, stdenv }:
|
|
|
|
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
|
|
version = "0.4.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nerdypepper";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-4hVEwm2xuuHFy38/EJLKjGuxTYCAcKRHHfFKLvqp+M0=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-15C/ye8nYLtriBlqbf1ul41IFtShGY2LTX10z1/08Po=";
|
|
|
|
buildFeatures = lib.optional withJson "json";
|
|
|
|
# tests are failing on darwin
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
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 ];
|
|
};
|
|
}
|