nixpkgs/pkgs/tools/nix/nixpkgs-lint/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

28 lines
745 B
Nix

{ 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; {
description = "Fast semantic linter for Nix using tree-sitter";
mainProgram = "nixpkgs-lint";
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 ];
};
}