From 0a29e2431f87f69c5e48429f0b08398c4f2948b9 Mon Sep 17 00:00:00 2001 From: mitchmindtree Date: Sun, 2 Jul 2023 11:36:42 +1000 Subject: [PATCH] cargo-toml-lint: init at 0.1.1 A simple tool for linting cargo manifest files. It checks for things like manifest validity, ordering of dependencies and contiguous listing of array entries. --- .../tools/rust/cargo-toml-lint/default.nix | 24 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 25 insertions(+) create mode 100644 pkgs/development/tools/rust/cargo-toml-lint/default.nix diff --git a/pkgs/development/tools/rust/cargo-toml-lint/default.nix b/pkgs/development/tools/rust/cargo-toml-lint/default.nix new file mode 100644 index 000000000000..bcaf9c158f59 --- /dev/null +++ b/pkgs/development/tools/rust/cargo-toml-lint/default.nix @@ -0,0 +1,24 @@ +{ lib +, rustPlatform +, fetchCrate +}: + +rustPlatform.buildRustPackage rec { + pname = "cargo-toml-lint"; + version = "0.1.1"; + + src = fetchCrate { + inherit pname version; + hash = "sha256-U3y9gnFvkqJmyFqRAUQorJQY0iRzAE9UUXzFmgZIyaM="; + }; + + cargoHash = "sha256-ujdekIucqes2Wya4jwTMLstb8JMptbAlqYhgMxfp2gg="; + + meta = with lib; { + description = "A simple linter for Cargo.toml manifests"; + homepage = "https://github.com/fuellabs/cargo-toml-lint"; + changelog = "https://github.com/fuellabs/cargo-toml-lint/releases/tag/v${version}"; + license = with licenses; [ asl20 /* or */ mit ]; + maintainers = with maintainers; [ mitchmindtree ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ae6f3be59fef..bc2787edab00 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16792,6 +16792,7 @@ with pkgs; cargo-sync-readme = callPackage ../development/tools/rust/cargo-sync-readme { }; cargo-tally = callPackage ../development/tools/rust/cargo-tally { }; cargo-temp = callPackage ../development/tools/rust/cargo-temp { }; + cargo-toml-lint = callPackage ../development/tools/rust/cargo-toml-lint { }; cargo-udeps = callPackage ../development/tools/rust/cargo-udeps { inherit (darwin.apple_sdk.frameworks) CoreServices Security SystemConfiguration; };