From 5cee7bf55a8423a6c2c48fd23b70fdbb5ee47413 Mon Sep 17 00:00:00 2001 From: nartsisss Date: Tue, 29 Oct 2024 16:35:32 +0300 Subject: [PATCH] cargo-modules: refactor meta, format using nixfmt-rfc-style --- pkgs/by-name/ca/cargo-modules/package.nix | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/ca/cargo-modules/package.nix b/pkgs/by-name/ca/cargo-modules/package.nix index b99b506c6111..13625dae781d 100644 --- a/pkgs/by-name/ca/cargo-modules/package.nix +++ b/pkgs/by-name/ca/cargo-modules/package.nix @@ -1,4 +1,10 @@ -{ lib, rustPlatform, fetchFromGitHub, stdenv, darwin }: +{ + lib, + rustPlatform, + fetchFromGitHub, + stdenv, + darwin, +}: rustPlatform.buildRustPackage rec { pname = "cargo-modules"; @@ -41,12 +47,16 @@ rustPlatform.buildRustPackage rec { "--skip=selection::no_types::smoke" ]; - meta = with lib; { + meta = { description = "Cargo plugin for showing a tree-like overview of a crate's modules"; - mainProgram = "cargo-modules"; homepage = "https://github.com/regexident/cargo-modules"; changelog = "https://github.com/regexident/cargo-modules/blob/${version}/CHANGELOG.md"; - license = with licenses; [ mpl20 ]; - maintainers = with maintainers; [ figsoda rvarago matthiasbeyer ]; + license = lib.licenses.mpl20; + maintainers = with lib.maintainers; [ + figsoda + rvarago + matthiasbeyer + ]; + mainProgram = "cargo-modules"; }; }