Merge pull request #234895 from figsoda/nixpkgs-lint

This commit is contained in:
Artturi 2023-06-22 19:41:52 +03:00 committed by GitHub
commit 86dd1dc254
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,26 @@
{ 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";
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 ];
};
}

View file

@ -39722,6 +39722,8 @@ with pkgs;
nixpkgs-hammering = callPackage ../tools/nix/nixpkgs-hammering { };
nixpkgs-lint-community = callPackage ../tools/nix/nixpkgs-lint { };
rnix-hashes = callPackage ../tools/nix/rnix-hashes { };
nixos-artwork = callPackage ../data/misc/nixos-artwork { };