diff options
author | figsoda <figsoda@pm.me> | 2023-05-29 19:33:32 -0400 |
---|---|---|
committer | figsoda <figsoda@pm.me> | 2023-06-22 10:07:47 -0400 |
commit | 0415163b68ff3e7e16d07c52bdd3d7ab84268d09 (patch) | |
tree | 73896406a4b9e15910f632487ba0b09fa4b5e9df /pkgs/tools/nix | |
parent | 437d2a8aac9e3b1f35eff77cd0bb03efca7afd96 (diff) |
nixpkgs-lint-community: init at 0.3.0
https://github.com/nix-community/nixpkgs-lint
Diffstat (limited to 'pkgs/tools/nix')
-rw-r--r-- | pkgs/tools/nix/nixpkgs-lint/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/tools/nix/nixpkgs-lint/default.nix b/pkgs/tools/nix/nixpkgs-lint/default.nix new file mode 100644 index 0000000000000..16e7582d3a92e --- /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 ]; + }; +} |