diff --git a/pkgs/tools/nix/nixpkgs-lint/default.nix b/pkgs/tools/nix/nixpkgs-lint/default.nix new file mode 100644 index 000000000000..16e7582d3a92 --- /dev/null +++ b/pkgs/tools/nix/nixpkgs-lint/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d181a853143d..837bc9ac7eeb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -39711,6 +39711,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 { };