Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
41 lines
978 B
Nix
41 lines
978 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
withJson ? true,
|
|
stdenv,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "statix";
|
|
# also update version of the vim plugin in
|
|
# pkgs/applications/editors/vim/plugins/overrides.nix
|
|
# the version can be found in flake.nix of the source code
|
|
version = "0.5.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "oppiliappan";
|
|
repo = "statix";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-bMs3XMiGP6sXCqdjna4xoV6CANOIWuISSzCaL5LYY4c=";
|
|
};
|
|
|
|
cargoHash = "sha256-Pi1q2qNLjQYr3Wla7rqrktNm0StszB2klcfzwAnF3tE=";
|
|
|
|
buildFeatures = lib.optional withJson "json";
|
|
|
|
# tests are failing on darwin
|
|
doCheck = !stdenv.hostPlatform.isDarwin;
|
|
|
|
meta = with lib; {
|
|
description = "Lints and suggestions for the nix programming language";
|
|
homepage = "https://github.com/oppiliappan/statix";
|
|
license = licenses.mit;
|
|
mainProgram = "statix";
|
|
maintainers = with maintainers; [
|
|
figsoda
|
|
nerdypepper
|
|
];
|
|
};
|
|
}
|