From 46209d061fb8ec548c6f8ab8d31718007dedb933 Mon Sep 17 00:00:00 2001 From: Ryan Omasta Date: Wed, 14 Aug 2024 22:09:13 -0600 Subject: [PATCH] cargo-tauri: format using nixfmt-rfc-style --- .../tools/rust/cargo-tauri/default.nix | 51 +++++++++++++------ 1 file changed, 35 insertions(+), 16 deletions(-) diff --git a/pkgs/development/tools/rust/cargo-tauri/default.nix b/pkgs/development/tools/rust/cargo-tauri/default.nix index e8421b1781cfc..802f38308907e 100644 --- a/pkgs/development/tools/rust/cargo-tauri/default.nix +++ b/pkgs/development/tools/rust/cargo-tauri/default.nix @@ -1,15 +1,16 @@ -{ lib -, stdenv -, rustPlatform -, fetchFromGitHub -, openssl -, pkg-config -, glibc -, libsoup -, cairo -, gtk3 -, webkitgtk -, darwin +{ + lib, + stdenv, + rustPlatform, + fetchFromGitHub, + openssl, + pkg-config, + glibc, + libsoup, + cairo, + gtk3, + webkitgtk, + darwin, }: let @@ -32,15 +33,33 @@ rustPlatform.buildRustPackage rec { cargoHash = "sha256-fGnre+vPzWtpp9NLLQtb/Feh06pBQipkCQ2kFCDTC+Y="; - buildInputs = [ openssl ] ++ lib.optionals stdenv.isLinux [ glibc libsoup cairo gtk3 webkitgtk ] - ++ lib.optionals stdenv.isDarwin [ CoreServices Security SystemConfiguration ]; + buildInputs = + [ openssl ] + ++ lib.optionals stdenv.isLinux [ + glibc + libsoup + cairo + gtk3 + webkitgtk + ] + ++ lib.optionals stdenv.isDarwin [ + CoreServices + Security + SystemConfiguration + ]; nativeBuildInputs = [ pkg-config ]; meta = with lib; { description = "Build smaller, faster, and more secure desktop applications with a web frontend"; mainProgram = "cargo-tauri"; homepage = "https://tauri.app/"; - license = with licenses; [ asl20 /* or */ mit ]; - maintainers = with maintainers; [ dit7ya happysalada ]; + license = with licenses; [ + asl20 # or + mit + ]; + maintainers = with maintainers; [ + dit7ya + happysalada + ]; }; }