2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "nixpkgs-lint";
|
|
|
|
version = "0.3.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nix-community";
|
|
|
|
repo = "nixpkgs-lint";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-o1VWM46lEJ9m49s/ekZWf8DkCeeWm4J3PQtt8tVXHbg=";
|
|
|
|
};
|
|
|
|
|
|
|
|
cargoHash = "sha256-LWtBO0Ai5cOtnfZElBrHZ7sDdp3ddfcCRdTA/EEDPfE=";
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Fast semantic linter for Nix using tree-sitter";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "nixpkgs-lint";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/nix-community/nixpkgs-lint";
|
|
|
|
changelog = "https://github.com/nix-community/nixpkgs-lint/releases/tag/${src.rev}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ artturin figsoda ];
|
|
|
|
};
|
|
|
|
}
|