nixpkgs/pkgs/tools/nix/nixpkgs-lint/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

28 lines
747 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 = "A 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 ];
};
}